Added temperature hysteresis for charge and discharge. Added separate command for fault state

This commit is contained in:
Yury Shuvakin
2023-03-26 23:44:40 +03:00
parent f24e206582
commit 714bf3ae8c
5 changed files with 107 additions and 27 deletions

View File

@@ -528,6 +528,11 @@ void modCommandsProcessPacket(unsigned char *data, unsigned int len) {
modCommandsSendBuffer[ind++] = packet_id;
modCommandsSendPacket(modCommandsSendBuffer, ind);
break;
case COMM_GET_FAULT_STATE:
ind = 0;
modCommandsSendBuffer[ind++] = COMM_GET_FAULT_STATE;
libBufferAppend_uint16(modCommandsSendBuffer, (uint16_t)modCommandsGeneralState->faultState, &ind);
modCommandsSendPacket(modCommandsSendBuffer, ind);
default:
break;
}