Index: firmware/App/Controllers/AirPump.c =================================================================== diff -u -r74fb4e00de266776cfc5d92163592ee895c23ed0 -r95e882ae0db11d5da104a684964d5becea6f2b8d --- firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision 74fb4e00de266776cfc5d92163592ee895c23ed0) +++ firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision 95e882ae0db11d5da104a684964d5becea6f2b8d) @@ -93,10 +93,10 @@ BOOL setAirPumpState( AIR_PUMP_STATE_T state, F32 power ) { BOOL result = FALSE; - //There is a limitation on the TD circuit to be able to run the pump at the low speed. change planned in next version of the board. right now limiting the pump duty cycle below 24% //BOOL validInput = ( power == AIR_PUMP_DUTY_CYCLE_MIN) || ( power >= AIR_PUMP_DUTY_CYCLE_LIMIT && power <= AIR_PUMP_DUTY_CYCLE_MAX); BOOL validInput = ( ( ( power >= AIR_PUMP_DUTY_CYCLE_MIN ) && ( power <= AIR_PUMP_DUTY_CYCLE_MAX ) ) && ( FALSE == ( ( power > AIR_PUMP_DUTY_CYCLE_MIN ) && ( power < AIR_PUMP_DUTY_CYCLE_LIMIT ) ) ) ); + // need to pass the result immediately to user when user enter invalid range if ( FALSE == validInput ) {