Index: firmware/App/Controllers/AirPump.c =================================================================== diff -u -r64d2b855d4021c416d7db207d89f61d92d14a32a -r59db8aee013909ad99e034b638b27e16a2d88df7 --- firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision 64d2b855d4021c416d7db207d89f61d92d14a32a) +++ firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision 59db8aee013909ad99e034b638b27e16a2d88df7) @@ -153,9 +153,6 @@ *************************************************************************/ void execAirPumpController( void ) { - // update the speed every tick - currentAirPumpRPM = getAirPumpMotorRPM(); - switch( currentAirPumpState ) { case AIR_PUMP_STATE_INIT: @@ -177,7 +174,8 @@ // Check stall condition checkAirPumpStallCondition(); - + // update the speed every tick + currentAirPumpRPM = getAirPumpMotorRPM(); publishAirPumpData(); } @@ -320,7 +318,7 @@ * @brief * The testSetAirPump function sets the air pump to a given power level. * @details \b Inputs: none - * @details \b Outputs: currentAirPumpMotorPowerLevel + * @details \b Outputs: none * @param message set message from Dialin which includes the state to set * the air pump to. * @return TRUE if set request is successful, FALSE if not