Index: firmware/App/Modes/ModeInitPOST.c =================================================================== diff -u -r2a3a47ca90ad19851a30c52f6999a56d5f578783 -rf6b78d1fe6741043de38707211710ab0e8a08483 --- firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision 2a3a47ca90ad19851a30c52f6999a56d5f578783) +++ firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision f6b78d1fe6741043de38707211710ab0e8a08483) @@ -7,8 +7,8 @@ * * @file ModeInitPOST.c * -* @author (last) Dara Navaei -* @date (last) 04-Jan-2022 +* @author (last) Hung Nguyen +* @date (last) 15-Feb-2022 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -37,6 +37,7 @@ #include "RTC.h" #include "SafetyShutdown.h" #include "SyringePump.h" +#include "system.h" #include "SystemCommMessages.h" #include "TaskGeneral.h" #include "Temperatures.h" @@ -480,6 +481,7 @@ // Send the startup event SEND_EVENT_WITH_2_U32_DATA( HD_EVENT_STARTUP, resetReason, systemREG1->GBLSTAT ) // log startup event w/ reset reason(s) bits SEND_EVENT_WITH_2_U32_DATA( HD_EVENT_STARTUP, systemREG1->DEV, 0x12345678 ) // log startup event w/ device ID bits + // Send the first submode change event. It is the mode Init and it does not start from a previous // mode previous and current are both published as Init SEND_EVENT_WITH_2_U32_DATA( HD_EVENT_OP_MODE_CHANGE, MODE_INIT, MODE_INIT )