MPSoC Fixes #894

Merged
muellerr merged 4 commits from mpsoc-fixes into main 2024-05-13 14:03:12 +02:00
2 changed files with 8 additions and 2 deletions
Showing only changes of commit 73279a0bf3 - Show all commits

View File

@ -337,6 +337,10 @@ void FreshMpsocHandler::startTransition(Mode_t newMode, Submode_t submode) {
} else if ((newMode == MODE_ON or newMode == MODE_NORMAL) &&
((mode == MODE_OFF) or (mode == MODE_UNDEFINED))) {
transitionState = TransitionState::TO_ON;
} else if (mode == MODE_ON && newMode == MODE_NORMAL) {
hkReport.setReportingEnabled(true);
} else if (mode == MODE_NORMAL && newMode == MODE_ON) {
hkReport.setReportingEnabled(false);
} else if (newMode == MODE_OFF) {
transitionState = TransitionState::TO_OFF;
}
@ -372,7 +376,9 @@ void FreshMpsocHandler::handleTransitionToOn() {
if (startupState == StartupState::DONE) {
setMode(targetMode, targetSubmode);
transitionState = TransitionState::NONE;
hkReport.setReportingEnabled(true);
if (targetMode == MODE_NORMAL) {
hkReport.setReportingEnabled(true);
}
powerState = PowerState::IDLE;
startupState = StartupState::IDLE;
}

2
tmtc

@ -1 +1 @@
Subproject commit 5cf76c07e98494e7e2532c25dbff7753cb675cf5
Subproject commit dccbf89da1e2b441a8fc3edc247550ca5dfbd68b