Index: firmware/App/Controllers/Voltages.c =================================================================== diff -u -rb178e719bbcd69b52869369ed0e93e0b2fc9c9ea -r8d744da26dcbd96b3c05da7784f865d9f8428567 --- firmware/App/Controllers/Voltages.c (.../Voltages.c) (revision b178e719bbcd69b52869369ed0e93e0b2fc9c9ea) +++ firmware/App/Controllers/Voltages.c (.../Voltages.c) (revision 8d744da26dcbd96b3c05da7784f865d9f8428567) @@ -237,12 +237,6 @@ // Check the persistence alarm checkPersistentAlarm ( ALARM_ID_HD_VOLTAGE_OUT_OF_RANGE, isVoltageOutOfRange, channelInAlarm, alarmVoltage ); - if ( DG_MODE_FAUL == getDGOpMode() && FALSE == isDGCommunicating() ) - { - // Reset the alarm clearance counter - resetPersistentAlarmTimer( ALARM_ID_HD_AC_POWER_LOST ); - } - if ( TRUE == hasPowerBeenLost ) { HD_OP_MODE_T opMode = getCurrentOperationMode(); Index: firmware/App/Modes/Rinseback.c =================================================================== diff -u -re8edb83fcba5c355198efc30944d51c54814bdbe -r8d744da26dcbd96b3c05da7784f865d9f8428567 --- firmware/App/Modes/Rinseback.c (.../Rinseback.c) (revision e8edb83fcba5c355198efc30944d51c54814bdbe) +++ firmware/App/Modes/Rinseback.c (.../Rinseback.c) (revision 8d744da26dcbd96b3c05da7784f865d9f8428567) @@ -227,6 +227,21 @@ setBloodPumpTargetFlowRate( rate, MOTOR_DIR_FORWARD, PUMP_CONTROL_MODE_CLOSED_LOOP ); // Start air trap leveling control startAirTrapControl(); + + // If DG restarted for some reason, lets make sure we set the heating parameters first before commanding to + // turn on the trimmer heater and start the DG as well. + if ( DG_MODE_STAN == getDGOpMode() ) + { + F32 targetTempC = getTreatmentParameterF32( TREATMENT_PARAM_DIALYSATE_TEMPERATURE ); + U32 dialysateFlowMLPM = getTreatmentParameterU32( TREATMENT_PARAM_DIALYSATE_FLOW ); + + // Set the heating parameters + setPreTreatmentHeatingParams( targetTempC, DEFAULT_FILL_RESERVOIR_TO_VOLUME_ML, DEFAULT_TARGET_FILL_FLOW_RATE_LPM, dialysateFlowMLPM ); + + // Start the DG + cmdStartDG(); + } + // Re-circulate dialysate side of dialyzer w/ heating to maintain temperature setDialInPumpTargetFlowRate( DIALYSATE_FLOW_RATE_FOR_RECIRC, MOTOR_DIR_FORWARD, PUMP_CONTROL_MODE_CLOSED_LOOP ); cmdStartDGTrimmerHeater(); Index: firmware/source/sys_link.cmd =================================================================== diff -u -r8791132fbfcb8fa25fb11a9ab15d695686aaef75 -r8d744da26dcbd96b3c05da7784f865d9f8428567 --- firmware/source/sys_link.cmd (.../sys_link.cmd) (revision 8791132fbfcb8fa25fb11a9ab15d695686aaef75) +++ firmware/source/sys_link.cmd (.../sys_link.cmd) (revision 8d744da26dcbd96b3c05da7784f865d9f8428567) @@ -70,8 +70,8 @@ VECTORS (X) : origin=0x00000000 length=0x00000020 CRCMEM (RX) : origin=0x00000020 length=0x000001E0 FLASH0 (RX) : origin=0x00000200 length=0x0013FE00 - STACKS (RW) : origin=0x08000000 length=0x00004c00 - RAM (RW) : origin=0x08004c00 length=0x0002b400 + STACKS (RW) : origin=0x08000000 length=0x00005800 + RAM (RW) : origin=0x08005800 length=0x0002a800 #endif /* USER CODE END */