Index: firmware/App/Modes/Dialysis.c =================================================================== diff -u -r766708fceb0bdf1af8c7897df29d4f5036bfd3db -r92f7cf45960398664518966bfaa2199f287cf2bd --- firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision 766708fceb0bdf1af8c7897df29d4f5036bfd3db) +++ firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision 92f7cf45960398664518966bfaa2199f287cf2bd) @@ -936,10 +936,10 @@ bolusSalineVolumeDelivered_Safety = ( (F32)bolusSalineMotorCount * VOLUME_PER_BP_MOTOR_REV_ML ); // TODO - include upstream pressure compensation to this calc #ifndef DISABLE_SALINE_BOLUS_CHECKS - // TODO - check for empty saline bag - if ( 0 ) + // Check for empty saline bag per arterial line pressure TODO - need persistence? + if ( TRUE == isSalineBagEmpty() ) { - SET_ALARM_WITH_1_F32_DATA( ALARM_ID_EMPTY_SALINE_BAG, 0.0 ); // TODO - give data supporting empty bag detection + SET_ALARM_WITH_1_F32_DATA( ALARM_ID_EMPTY_SALINE_BAG, getMeasuredArterialPressure() ); errorFound = TRUE; } #endif