Index: firmware/App/Controllers/AirPump.c =================================================================== diff -u -rf29f8b63b7b690e23e11d8e519f35e100220fe35 -r81106b694c47757fb36aaf58942b63fa18faec96 --- firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision f29f8b63b7b690e23e11d8e519f35e100220fe35) +++ firmware/App/Controllers/AirPump.c (.../AirPump.c) (revision 81106b694c47757fb36aaf58942b63fa18faec96) @@ -35,7 +35,7 @@ // ********** private definitions ********** #define AIR_PUMP_DATA_PUB_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) -#define DATA_PUBLISH_COUNTER_START_COUNT +#define DATA_PUBLISH_COUNTER_START_COUNT 13 #define AIR_PUMP_GPIO_PIN 0x04 #define AIR_PUMP_OPERATION_TIMEOUT ( 5 * MS_PER_SECOND ) @@ -72,6 +72,7 @@ *************************************************************************/ void initAirPump(void) { + 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 ); @@ -98,6 +99,13 @@ } } +/*********************************************************************//** + * @brief + * The getAirPumpMotorState function returns the current air pump motor state. + * @details Inputs: currentAirPumpMotorState + * @details Outputs: currentAirPumpMotorState + * @return current state of the air pump state machine. + *************************************************************************/ static AIR_PUMP_MOTOR_STATE_T getAirPumpMotorState( void ) { return currentAirPumpMotorState; @@ -166,6 +174,13 @@ 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() )