Index: firmware/App/Controllers/BloodLeak.c =================================================================== diff -u -rf47dd3b39499eee03d3e93236335c087b4ad71fb -rd182250ba0c3489513b025b96d1329d4ed07ea80 --- firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision f47dd3b39499eee03d3e93236335c087b4ad71fb) +++ firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision d182250ba0c3489513b025b96d1329d4ed07ea80) @@ -7,8 +7,13 @@ * * @file BloodLeak.c * +<<<<<<< HEAD * @author (last) Dara Navaei * @date (last) 10-Oct-2023 +======= +* @author (last) Bill Bracken +* @date (last) 22-Oct-2023 +>>>>>>> staging * * @author (original) Peman Montazemi * @date (original) 18-Mar-2021 @@ -397,6 +402,22 @@ /*********************************************************************//** * @brief + * The zeroBloodLeakReset function resets the commandRqstCount for all the + * zero blood leak commands. + * @details Inputs: none + * @details Outputs: none + * @return none + *************************************************************************/ +void zeroBloodLeakReset( void ) +{ + resetEmbModeCmdRqstCount( Z_EMB_MODE_CMD ); + resetEmbModeCmdRqstCount( G_EMB_MODE_CMD ); + resetEmbModeCmdRqstCount( Q_EMB_MODE_CMD ); + resetEmbModeCmdRqstCount( T_EMB_MODE_CMD ); +} + +/*********************************************************************//** + * @brief * The hasBloodLeakZeroSequenceFailed function returns TURE if the number * of times the zero sequence has failed. * @details Inputs: bloodLeakEmbModeCmd @@ -637,10 +658,7 @@ if ( FALSE == hasCmdSqncFailed ) { // Done with zero sequence, transition to other states - resetEmbModeCmdRqstCount( Z_EMB_MODE_CMD ); - resetEmbModeCmdRqstCount( G_EMB_MODE_CMD ); - resetEmbModeCmdRqstCount( Q_EMB_MODE_CMD ); - resetEmbModeCmdRqstCount( T_EMB_MODE_CMD ); + zeroBloodLeakReset(); bloodLeakSelfTestStatus = SELF_TEST_STATUS_PASSED; state = BLOOD_LEAK_NORMAL_STATE; }