Skip to content

Commit a7d5508

Browse files
committed
fix the safe mode emit spam
1 parent fddb10f commit a7d5508

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

FprimeZephyrReference/Components/ModeManager/ModeManager.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ void ModeManager ::run_handler(FwIndexType portNum, U32 context) {
4646
void ModeManager ::forceSafeMode_handler(FwIndexType portNum) {
4747
// Force entry into safe mode (called by other components)
4848
// Only allowed from NORMAL (sequential +1/-1 transitions)
49-
this->log_WARNING_HI_ExternalFaultDetected();
50-
51-
// Only enter safe mode from NORMAL - payload mode must be exited first
5249
if (this->m_mode == SystemMode::NORMAL) {
50+
this->log_WARNING_HI_ExternalFaultDetected();
5351
this->enterSafeMode("External component request");
5452
}
5553
// Note: Request ignored if in PAYLOAD_MODE or already in SAFE_MODE

0 commit comments

Comments
 (0)