Index: firmware/App/Controllers/AirTrap.c =================================================================== diff -u -rbb0566d9d186ea1379fbba7233c6b7ebf95bc50c -r356d40106ca38b590639ccb5ac903b066e1f8659 --- firmware/App/Controllers/AirTrap.c (.../AirTrap.c) (revision bb0566d9d186ea1379fbba7233c6b7ebf95bc50c) +++ firmware/App/Controllers/AirTrap.c (.../AirTrap.c) (revision 356d40106ca38b590639ccb5ac903b066e1f8659) @@ -35,9 +35,10 @@ /// Interval (ms/task time) at which the air trap data is published on the CAN bus. #define AIR_TRAP_DATA_PUB_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) +#define AIR_PUMP_UPPER_LEVEL_PERSISTENCE ( 2 * MS_PER_SECOND / TASK_GENERAL_INTERVAL ) + /// Persistence period for illegal level sensors fault. static const U32 AIR_TRAP_ILLEGAL_LEVELS_PERSISTENCE = ( MS_PER_SECOND * 2 / TASK_GENERAL_INTERVAL ); -static const U32 AIR_TRAP_UPPER_LEVEL_PERSISTENCE = ( MS_PER_SECOND * 2 / TASK_GENERAL_INTERVAL ); /// Volume (in mL) of venous portion of blood circuit line. TODO - get actual volume from Systems. #define VENOUS_LINE_VOLUME_ML ( 200.0F )