go to off mode directly
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
parent
7ff63930d4
commit
29e031f0df
@ -43,7 +43,8 @@ void RwHandler::doShutDown() {
|
|||||||
}
|
}
|
||||||
internalState = InternalState::DEFAULT;
|
internalState = InternalState::DEFAULT;
|
||||||
updatePeriodicReply(false, rws::REPLY_ID);
|
updatePeriodicReply(false, rws::REPLY_ID);
|
||||||
setMode(_MODE_POWER_DOWN);
|
// The power switch is handled by the assembly, so we can go off here directly.
|
||||||
|
setMode(MODE_OFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t RwHandler::buildNormalDeviceCommand(DeviceCommandId_t* id) {
|
ReturnValue_t RwHandler::buildNormalDeviceCommand(DeviceCommandId_t* id) {
|
||||||
@ -148,7 +149,7 @@ void RwHandler::fillCommandAndReplyMap() {
|
|||||||
|
|
||||||
ReturnValue_t RwHandler::scanForReply(const uint8_t* start, size_t remainingSize,
|
ReturnValue_t RwHandler::scanForReply(const uint8_t* start, size_t remainingSize,
|
||||||
DeviceCommandId_t* foundId, size_t* foundLen) {
|
DeviceCommandId_t* foundId, size_t* foundLen) {
|
||||||
if (getMode() == _MODE_WAIT_OFF) {
|
if (getMode() == _MODE_WAIT_OFF or getMode() == _MODE_WAIT_ON) {
|
||||||
return IGNORE_FULL_PACKET;
|
return IGNORE_FULL_PACKET;
|
||||||
}
|
}
|
||||||
if (remainingSize > 0) {
|
if (remainingSize > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user