Index: firmware/App/Controllers/BloodLeak.c =================================================================== diff -u -raea9486b1cc38cf96f6ebd983ecd411ba45229bf -r4305d29abf3256f959aea88e5755bff15395e9fb --- firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision aea9486b1cc38cf96f6ebd983ecd411ba45229bf) +++ firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision 4305d29abf3256f959aea88e5755bff15395e9fb) @@ -397,6 +397,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 +653,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; }