try to add shutdown handling
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
e1e690d487
commit
77761ee9e3
@ -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;
|
||||
temperatureSet.setValidity(false, true);
|
||||
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
2
tmtc
@ -1 +1 @@
|
||||
Subproject commit c4329558c900575af90caa97ff4d460538a94b6d
|
||||
Subproject commit 83f10ed2530f88200f180139cf97bd2d83d857a0
|
Loading…
Reference in New Issue
Block a user