Index: firmware/App/Modes/Prime.c =================================================================== diff -u -r51245314484476140164c8dd3dc1a6dc1b7c2384 -ra6f52e9ca899d4983b18cbde673139aba216e8d5 --- firmware/App/Modes/Prime.c (.../Prime.c) (revision 51245314484476140164c8dd3dc1a6dc1b7c2384) +++ firmware/App/Modes/Prime.c (.../Prime.c) (revision a6f52e9ca899d4983b18cbde673139aba216e8d5) @@ -7,8 +7,8 @@ * * @file Prime.c * -* @author (last) Darren Cox -* @date (last) 10-Mar-2022 +* @author (last) Bill Bracken +* @date (last) 24-Aug-2022 * * @author (original) Quang Nguyen * @date (original) 08-Dec-2020 @@ -166,6 +166,8 @@ setAlarmUserActionEnabled( ALARM_USER_ACTION_RINSEBACK, FALSE ); setAlarmUserActionEnabled( ALARM_USER_ACTION_END_TREATMENT, TRUE ); + doorClosedRequired( TRUE, TRUE ); + // Pumps should be off signalBloodPumpHardStop(); signalDialInPumpHardStop(); @@ -497,7 +499,7 @@ if ( TRUE == didTimeout( purgeAirTimeOutStartTime, PURGE_AIR_TIME_OUT_COUNT ) ) { - activateAlarmNoData( ALARM_ID_HD_PRIME_PURGE_AIR_TIME_OUT ); + activateAlarmNoData( ALARM_ID_HD_PRIME_SALINE_PURGE_AIR_TIME_OUT ); } if ( AIR_TRAP_LEVEL_FLUID == getAirTrapLevel( AIR_TRAP_LEVEL_SENSOR_LOWER ) ) @@ -594,7 +596,7 @@ // Calculate the time out value that must passed prior to checking for the steady state volume in the reservoir primeDialysateDialyzerTimeLimit = (U32)( ( ( DIALYSATE_DIALYZER_TUBE_VOLUME_ML + dialyzerDialysateVolume ) * SEC_PER_MIN * MS_PER_SECOND ) / DIALYSATE_PUMP_PRIME_FLOW_RATE_ML_MIN ); - minimumReservoirVolume = getLoadCellWeight( LOAD_CELL_RESERVOIR_2_PRIMARY ); + minimumReservoirVolume = getLoadCellWeight( LOAD_CELL_RESERVOIR_1_PRIMARY ); steadyVolumeCount = 0; steadyVolumeSamplingStartTime = getMSTimerCount(); primeDialysateDialyzerStartTime = getMSTimerCount();