correct fix
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2023-07-13 17:30:43 +02:00
parent 6398532462
commit fec85ffa6c
Signed by: muellerr
GPG Key ID: 407F9B00F858F270

View File

@ -786,13 +786,11 @@ void StarTrackerHandler::doOnTransition(Submode_t subModeFrom) {
void StarTrackerHandler::doNormalTransition(Mode_t modeFrom, Submode_t subModeFrom) {
using namespace startracker;
if (subModeFrom == SUBMODE_FIRMWARE) {
solutionSet.setReportingEnabled(true);
setMode(MODE_NORMAL);
} else if (subModeFrom == SUBMODE_BOOTLOADER) {
bootFirmware(MODE_NORMAL);
} else if (modeFrom == MODE_NORMAL && subModeFrom == SUBMODE_NONE) {
// Device handler already in mode normal
solutionSet.setReportingEnabled(true);
setMode(MODE_NORMAL);
}
}
@ -814,6 +812,7 @@ void StarTrackerHandler::bootFirmware(Mode_t toMode) {
} else {
setMode(toMode, startracker::SUBMODE_FIRMWARE);
}
solutionSet.setReportingEnabled(true);
sif::info << "STR: Firmware boot success" << std::endl;
internalState = InternalState::IDLE;
startupState = StartupState::IDLE;