added periodically polling of reset status in rw handler
This commit is contained in:
@ -42,13 +42,17 @@ void RwHandler::doShutDown() {
|
||||
|
||||
ReturnValue_t RwHandler::buildNormalDeviceCommand(DeviceCommandId_t * id) {
|
||||
switch (communicationStep) {
|
||||
case CommunicationStep::GET_RESET_STATUS:
|
||||
*id = RwDefinitions::GET_LAST_RESET_STATUS;
|
||||
communicationStep = CommunicationStep::READ_TEMPERATURE;
|
||||
break;
|
||||
case CommunicationStep::READ_TEMPERATURE:
|
||||
*id = RwDefinitions::GET_TEMPERATURE;
|
||||
communicationStep = CommunicationStep::GET_RW_SATUS;
|
||||
break;
|
||||
case CommunicationStep::GET_RW_SATUS:
|
||||
*id = RwDefinitions::GET_RW_STATUS;
|
||||
communicationStep = CommunicationStep::READ_TEMPERATURE;
|
||||
communicationStep = CommunicationStep::GET_RESET_STATUS;
|
||||
break;
|
||||
default:
|
||||
sif::debug << "RwHandler::buildNormalDeviceCommand: Invalid communication step"
|
||||
|
Reference in New Issue
Block a user