try to add shutdown handling
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
2023-01-26 16:16:23 +01:00
parent e1e690d487
commit 77761ee9e3
2 changed files with 11 additions and 6 deletions

View File

@ -34,10 +34,15 @@ void SyrlinksHandler::doStartUp() {
}
void SyrlinksHandler::doShutDown() {
setMode(_MODE_POWER_DOWN);
// In any case, always disable TX first.
internalState = InternalState::SET_TX_STANDBY;
commandExecuted = false;
internalState = InternalState::OFF;
if (commandExecuted) {
temperatureSet.setValidity(false, true);
internalState = InternalState::OFF;
commandExecuted = false;
setMode(_MODE_POWER_DOWN);
}
}
ReturnValue_t SyrlinksHandler::buildNormalDeviceCommand(DeviceCommandId_t* id) {
@ -798,7 +803,7 @@ void SyrlinksHandler::doTransition(Mode_t modeFrom, Submode_t subModeFrom) {
commandDone();
}
}
} else {
commandDone();
} else if (tgtMode == HasModesIF::MODE_OFF) {
txStandbyHandler();
}
}

2
tmtc

Submodule tmtc updated: c4329558c9...83f10ed253