Index: firmware/App/Modes/ModeInitPOST.c =================================================================== diff -u -rf42812654310a70d0861f786f4ed904aea9e4a7b -r7499a42cc0f906f9a4a947c82c5b4615217ce7e5 --- firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision f42812654310a70d0861f786f4ed904aea9e4a7b) +++ firmware/App/Modes/ModeInitPOST.c (.../ModeInitPOST.c) (revision 7499a42cc0f906f9a4a947c82c5b4615217ce7e5) @@ -7,8 +7,8 @@ * * @file ModeInitPOST.c * -* @author (last) Hung Nguyen -* @date (last) 15-Feb-2022 +* @author (last) Dara Navaei +* @date (last) 13-Jul-2022 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -156,14 +156,6 @@ postState = handlePOSTStatus( testStatus ); break; - case POST_STATE_AC: - if ( getMonitoredLineLevel( MONITORED_LINE_24V ) < MIN_24V_MEASURED_FOR_AC ) - { - initiatePowerOff(); - } - postState = POST_STATE_WATCHDOG; - break; - case POST_STATE_WATCHDOG: testStatus = execWatchdogTest(); postState = handlePOSTStatus( testStatus ); @@ -224,14 +216,18 @@ break; case POST_STATE_ALARM_AUDIO: +#ifndef _RELEASE_ if ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_ALARM_AUDIO ) != SW_CONFIG_ENABLE_VALUE ) +#endif { testStatus = execAlarmAudioSelfTest(); } +#ifndef _RELEASE_ else { testStatus = SELF_TEST_STATUS_PASSED; } +#endif postState = handlePOSTStatus( testStatus ); break; @@ -484,8 +480,8 @@ sendUIVersionRequest(); // 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_EVENT_WITH_2_U32_DATA( HD_EVENT_STARTUP, resetReason, systemREG1->GBLSTAT ) // log startup event w/ reset reason(s) 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