Index: firmware/App/Modes/Prime.c =================================================================== diff -u -r29a10234d477b500dd2a07ab269d49bd18b221eb -ra0e1bd7c36f379280db50285f23ae5c881681d8d --- firmware/App/Modes/Prime.c (.../Prime.c) (revision 29a10234d477b500dd2a07ab269d49bd18b221eb) +++ firmware/App/Modes/Prime.c (.../Prime.c) (revision a0e1bd7c36f379280db50285f23ae5c881681d8d) @@ -60,7 +60,7 @@ #define STEADY_VOLUME_COUNT_SEC ( 10000 / LOAD_CELL_STEADY_VOLUME_SAMPLING_TIME ) ///< Counter must be greater than 10 seconds before steady volume is true. #define STEADY_VOLUME_TIME_DEADLINE_MS ( 55 * MS_PER_SECOND ) ///< Time in msec for the steady volume deadline time out. -#define ARTERIAL_PRESSURE_BUBBLE_CLEAR_MAX_MMHG ( 200.0F ) ///< Maximum arterial pressure reading (in mmHg) for bubble clear. +#define VENOUS_PRESSURE_BUBBLE_CLEAR_MAX_MMHG ( 200.0F ) ///< Maximum arterial pressure reading (in mmHg) for bubble clear. /// States of the treatment reservoir management state machine. typedef enum PrimeReservoirMgmt_States @@ -755,7 +755,7 @@ setValvePosition( VDI, VALVE_POSITION_C_CLOSE ); bubbleClearActive = TRUE; } - if ( ( TRUE == bubbleClearActive ) && ( getFilteredArterialPressure() > ARTERIAL_PRESSURE_BUBBLE_CLEAR_MAX_MMHG ) ) + if ( ( TRUE == bubbleClearActive ) && ( getMeasuredVenousPressure() > VENOUS_PRESSURE_BUBBLE_CLEAR_MAX_MMHG ) ) { // Pressure max reached, release pressure setValvePosition( VDI, VALVE_POSITION_A_INSERT_EJECT );