Index: firmware/App/Controllers/AirPump.c =================================================================== diff -u -r02f3bf10bc1da8a886b2f3292e5e9dc2efe4ace3 -r9d4aa5ab195ebacbfc6c569b89d841f89bfdc42c --- firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision 02f3bf10bc1da8a886b2f3292e5e9dc2efe4ace3) +++ firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision 9d4aa5ab195ebacbfc6c569b89d841f89bfdc42c) @@ -226,22 +226,18 @@ *************************************************************************/ static void checkAirPumpStallCondition( void ) { - if ( ( currentAirPumpPowerLevel > 0 ) && ( currentAirPumpRPM == 0 ) ) - { - // We are commanding air pump to run but zero measured pump speed indicates it is not running - if ( airPumpStallCounter < AIR_PUMP_STALL_PERSISTENCE ) - { - airPumpStallCounter++; - } - if ( airPumpStallCounter >= AIR_PUMP_STALL_PERSISTENCE ) - { - SET_ALARM_WITH_2_U32_DATA( ALARM_ID_TD_AIR_PUMP_STALL, currentAirPumpPowerLevel, currentAirPumpRPM ); - } - } - else - { - airPumpStallCounter = 0; - } + if ( ( currentAirPumpPowerLevel > 0 ) && ( currentAirPumpRPM == 0 ) ) + { + // we are commanding air pump to run but zero measured pump speed indicates it is not running + if ( ++airPumpStallCounter >= AIR_PUMP_STALL_PERSISTENCE ) + { + SET_ALARM_WITH_2_U32_DATA( ALARM_ID_TD_AIR_PUMP_STALL, currentAirPumpPowerLevel, currentAirPumpRPM ); + } + } + else + { + airPumpStallCounter = 0; + } } /*********************************************************************//**