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

This commit is contained in:
Robin Müller 2023-01-26 16:16:23 +01:00
parent e1e690d487
commit 77761ee9e3
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
2 changed files with 11 additions and 6 deletions

View File

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

2
tmtc

@ -1 +1 @@
Subproject commit c4329558c900575af90caa97ff4d460538a94b6d Subproject commit 83f10ed2530f88200f180139cf97bd2d83d857a0