Index: firmware/App/Controllers/AirPump.c =================================================================== diff -u -rcecd0a4cd30e14aa9a193ca3e7bf8a27e7a7e5e4 -ra452377c3d89ff36fa90faef5e3790e2322237a3 --- firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision cecd0a4cd30e14aa9a193ca3e7bf8a27e7a7e5e4) +++ firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision a452377c3d89ff36fa90faef5e3790e2322237a3) @@ -101,7 +101,8 @@ { result = FALSE; } - else if ( state >= AIR_PUMP_STATE_INIT && state < NUM_OF_AIR_PUMP_STATES ) + // unsigned integer never be less than 0 + else if ( state < NUM_OF_AIR_PUMP_STATES ) { currentAirPumpState = state; // power level should be 0 (OFF) when pump state is not ON @@ -286,6 +287,7 @@ BOOL testSetAirPump( MESSAGE_T *message ) { BOOL result = FALSE; + // Verify tester has logged in with TD and override type is valid if ( TRUE == isTestingActivated() ) {