Index: firmware/App/Controllers/AirPump.c =================================================================== diff -u -rff6e2f4897feba45015772dce12a4c7ca9923b55 -r02f3bf10bc1da8a886b2f3292e5e9dc2efe4ace3 --- firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision ff6e2f4897feba45015772dce12a4c7ca9923b55) +++ firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision 02f3bf10bc1da8a886b2f3292e5e9dc2efe4ace3) @@ -33,6 +33,7 @@ #define AIR_PUMP_DATA_PUB_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ///< Air pump data publish interval. #define DATA_PUBLISH_COUNTER_START_COUNT 13 ///< Air pump data publish start counter. +#define AIR_PUMP_STALL_PERSISTENCE ( 150 / TASK_GENERAL_INTERVAL ) ///< Stall duration before alarm (150 ms) #pragma pack(push, 1) /// Payload record structure for air pump test set command message payload. @@ -228,11 +229,11 @@ if ( ( currentAirPumpPowerLevel > 0 ) && ( currentAirPumpRPM == 0 ) ) { // We are commanding air pump to run but zero measured pump speed indicates it is not running - if ( airPumpStallCounter < 3 ) + if ( airPumpStallCounter < AIR_PUMP_STALL_PERSISTENCE ) { airPumpStallCounter++; } - if ( airPumpStallCounter >= 3 ) + if ( airPumpStallCounter >= AIR_PUMP_STALL_PERSISTENCE ) { SET_ALARM_WITH_2_U32_DATA( ALARM_ID_TD_AIR_PUMP_STALL, currentAirPumpPowerLevel, currentAirPumpRPM ); }