Index: firmware/App/Controllers/AirTrap.c =================================================================== diff -u -r0a2ab0f2ca63d486018a0737bf692bb3d028bf28 -r725361ce81c772e8de31e45798aa447d85281785 --- firmware/App/Controllers/AirTrap.c (.../AirTrap.c) (revision 0a2ab0f2ca63d486018a0737bf692bb3d028bf28) +++ firmware/App/Controllers/AirTrap.c (.../AirTrap.c) (revision 725361ce81c772e8de31e45798aa447d85281785) @@ -38,10 +38,10 @@ // ********** private definitions ********** #define AIR_TRAP_DATA_PUB_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the air trap data is published on the CAN bus. -#define AIR_TRAP_FILL_TIMEOUT_MS ( 3 * MS_PER_SECOND ) ///< Air trap fill timeout period (in ms). Air pump will turn on for 1 second 3 times +#define AIR_TRAP_FILL_TIMEOUT_MS ( 3 * MS_PER_SECOND ) ///< Air trap fill timeout period (in ms). Air pump will turn on for 1 second 3 times #define AIR_TRAP_LOWER_TIMEOUT_MS ( 35 * MS_PER_SECOND ) ///< Air trap lower timeout period (in ms). Maximum air pump turn on for 1 sec, then a 10 sec delay and repeat this for 3 times (1+10)*3 = 33 #define AIR_PUMP_ON_DELAY_TIME_MS ( 10 * MS_PER_SECOND ) ///< Delay between air pump On (in ms). -#define AIR_PUMP_STOP_TIME_MS ( 1 * MS_PER_SECOND ) ///< Maximum air pump turn on time +#define AIR_PUMP_STOP_TIME_MS ( 1 * MS_PER_SECOND ) ///< Maximum air pump turn on time //#define AIR_PUMP_ON_ERROR_MAX_CNT 6 ///< Maximum number of air pump on events within time window before alarm triggered. Do not exceed MAX_TIME_WINDOWED_COUNT. //#define AIR_PUMP_ON_ERROR_TIME_WIN_MS ( 60 * MS_PER_SECOND ) ///< Time window for Air Pump on count error. @@ -227,6 +227,7 @@ readAirTrapLevelSensors(); // Check for illegal levels alarm + // TODO:to change later the blood set installed status if ( STATE_CLOSED == getSwitchState( H9_SWCH ) ) // determine whether a blood set is installed - if not installed, do not trigger illegal levels alarm { // If the pump track on open, zero the persistent counter to not check the air trap illegal level alarm @@ -348,7 +349,7 @@ /*********************************************************************//** * @brief * The getCalculatedAirPumpDutyCycle function get the Air Pump calculated raw dutycycle based on H14 pressure - * @details \b Inputs: H14 venous presure + * @details \b Inputs: H14 venous pressure * @details \b Outputs: none * @return dutyCyclePct *************************************************************************/