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:
@ -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
2
tmtc
Submodule tmtc updated: c4329558c9...83f10ed253
Reference in New Issue
Block a user