diff --git a/mission/sysDefs.h b/mission/sysDefs.h index 2b542c82..f60cdfd6 100644 --- a/mission/sysDefs.h +++ b/mission/sysDefs.h @@ -70,7 +70,8 @@ static constexpr Event REBOOT_COUNTER = event::makeEvent(SUBSYSTEM_ID, 7, severi static constexpr Event INDIVIDUAL_BOOT_COUNTS = event::makeEvent(SUBSYSTEM_ID, 8, severity::INFO); //! [EXPORT] : [COMMENT] I2C is unavailable. Triggered to system object can take further steps //! like I2C reboot or reboot. -static constexpr Event I2C_UNAVAILABLE = event::makeEvent(SUBSYSTEM_ID, 10, severity::MEDIUM); +static constexpr Event TRYING_I2C_RECOVERY = event::makeEvent(SUBSYSTEM_ID, 10, severity::MEDIUM); + } // namespace core #endif /* MISSION_SYSDEFS_H_ */ diff --git a/mission/system/EiveSystem.cpp b/mission/system/EiveSystem.cpp index c7a6f021..a6f7f0b3 100644 --- a/mission/system/EiveSystem.cpp +++ b/mission/system/EiveSystem.cpp @@ -134,6 +134,7 @@ ReturnValue_t EiveSystem::executeAction(ActionId_t actionId, MessageQueueId_t co const uint8_t* data, size_t size) { switch (actionId) { case (EXECUTE_I2C_REBOOT): { + triggerEvent(core::TRYING_I2C_RECOVERY); performI2cReboot = true; // This flag is more related to autonomous recovery handling, so we reset it here if this // reboot sequence is commanded manually.