Added temperature hysteresis for charge and discharge. Added separate command for fault state
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user