Index: firmware/App/Controllers/AirPump.c =================================================================== diff -u -rdf17e43dd693c0c3fc7214e7f32ee6c84ac16d48 -r03c0fe7eb496122973d27669d21ef2a9ee13f6ef --- firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision df17e43dd693c0c3fc7214e7f32ee6c84ac16d48) +++ firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision 03c0fe7eb496122973d27669d21ef2a9ee13f6ef) @@ -101,7 +101,7 @@ 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 ) ) ) ); + BOOL validInput = ( ( ( power >= AIR_PUMP_DUTY_CYCLE_MIN ) && ( power <= AIR_PUMP_DUTY_CYCLE_MAX ) ) ) ? TRUE : FALSE; // need to pass the result immediately to user when user enter invalid range if ( FALSE == validInput )