Index: firmware/App/Modes/Rinseback.c =================================================================== diff -u -rdbf9c245d46c7536c72d277da24f7b44d7a84118 -rea73bfe6fbeae8e42c7c22a68338aed6fa340914 --- firmware/App/Modes/Rinseback.c (.../Rinseback.c) (revision dbf9c245d46c7536c72d277da24f7b44d7a84118) +++ firmware/App/Modes/Rinseback.c (.../Rinseback.c) (revision ea73bfe6fbeae8e42c7c22a68338aed6fa340914) @@ -491,24 +491,24 @@ { RINSEBACK_STATE_T result = RINSEBACK_STOP_STATE; - // Have we been in this stopped state for too long w/o having delivered full blood volume back to patient? - if ( ( rinsebackTimerCtr > MAX_RINSEBACK_TIME ) && ( getRinsebackVolume() < rinsebackTargetVolume_mL ) ) - { - signalGoToTreatmentStopped(); - activateAlarmNoData( ALARM_ID_TREATMENT_RINSEBACK_TIMEOUT_ALARM ); - } // Have we been in this stopped state for too long despite having delivered full blood volume back to patient? - else if ( ( rinsebackTimerCtr > MAX_RINSEBACK_DONE_TIME ) /*&& ( getRinsebackVolume() >= rinsebackTargetVolume_mL )*/ ) // Commented out the second condition because the done time > max rinse back time + if ( ( rinsebackTimerCtr > MAX_RINSEBACK_DONE_TIME ) && ( getRinsebackVolume() >= rinsebackTargetVolume_mL ) ) { signalGoToTreatmentStopped(); activateAlarmNoData( ALARM_ID_TREATMENT_RINSEBACK_TIMEOUT_ALARM ); clearAlarm( ALARM_ID_HD_TREATMENT_RINSEBACK_TIMEOUT_WARNING ); } // Have we been in this stopped state for too long despite having delivered full blood volume back to patient? - else if ( ( RINSEBACK_DONE_WARNING_TIME == rinsebackTimerCtr ) /*&& ( getRinsebackVolume() >= rinsebackTargetVolume_mL )*/ ) // Commented out the second condition because the warning time > max rinse back time + else if ( ( RINSEBACK_DONE_WARNING_TIME == rinsebackTimerCtr ) && ( getRinsebackVolume() >= rinsebackTargetVolume_mL ) ) { activateAlarmNoData( ALARM_ID_HD_TREATMENT_RINSEBACK_TIMEOUT_WARNING ); } + // Have we been in this stopped state for too long w/o having delivered full blood volume back to patient? + else if ( ( rinsebackTimerCtr > MAX_RINSEBACK_TIME ) && ( getRinsebackVolume() < rinsebackTargetVolume_mL ) ) + { + signalGoToTreatmentStopped(); + activateAlarmNoData( ALARM_ID_TREATMENT_RINSEBACK_TIMEOUT_ALARM ); + } else if ( TRUE == recircRequested ) { signalRinsebackToRecirc();