Index: firmware/App/Controllers/AirPump.c =================================================================== diff -u -r736cc5b56cc9c784ab1d8fc8687a73d190c35759 -rb1ad59a650ecca8f4ba54bfc2c86040ca8e38652 --- firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision 736cc5b56cc9c784ab1d8fc8687a73d190c35759) +++ firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision b1ad59a650ecca8f4ba54bfc2c86040ca8e38652) @@ -60,7 +60,6 @@ static AIR_PUMP_STATE_T handleAirPumpOffState( void ); static AIR_PUMP_STATE_T handleAirPumpOnState ( void ); static void publishAirPumpData( void ); -static void execAirPumpMonitor( void ); static void setAirPumpMotor( AIR_PUMP_MOTOR_STATE_T state ); static AIR_PUMP_MOTOR_STATE_T getAirPumpMotorState( void ); @@ -76,7 +75,6 @@ airPumpDataPublicationTimerCounter = DATA_PUBLISH_COUNTER_START_COUNT; currentAirPumpState = AIR_PUMP_STATE_INIT; currentAirPumpMotorState = AIR_PUMP_MOTOR_OFF; - initPersistentAlarm( ALARM_ID_HD_AIR_PUMP_TIMEOUT, 0, AIR_PUMP_OPERATION_TIMEOUT ); } /*********************************************************************//** @@ -175,33 +173,11 @@ break; } - execAirPumpMonitor(); publishAirPumpData(); } /*********************************************************************//** * @brief - * The execAirPumpMonitor function executes the air pump monitor. - * @details Inputs: HD operation mode - * @details Outputs: none - * @return none - *************************************************************************/ -void execAirPumpMonitor( void ) -{ - if ( MODE_TREA == getCurrentOperationMode() ) - { - BOOL isAirPumpOn = ( AIR_PUMP_MOTOR_OFF == getAirPumpMotorState() ? FALSE : TRUE ); - - if ( TRUE == isPersistentAlarmTriggered( ALARM_ID_HD_AIR_PUMP_TIMEOUT, isAirPumpOn ) ) - { - SET_ALARM_WITH_1_U32_DATA( ALARM_ID_HD_AIR_PUMP_TIMEOUT, isAirPumpOn ); - setAirPumpState( AIR_PUMP_STATE_OFF ); - } - } -} - -/*********************************************************************//** - * @brief * The handleAirPumpStartState function starts the air pump state machine. * @details Inputs: none * @details Outputs: none