Index: firmware/App/Controllers/Heaters.c =================================================================== diff -u -r19ed5eac0b3a24d9bf9da52767dcc5fe2872bd7c -r08d27319b4b5f6f15e5de0758d9f528db1db6b3a --- firmware/App/Controllers/Heaters.c (.../Heaters.c) (revision 19ed5eac0b3a24d9bf9da52767dcc5fe2872bd7c) +++ firmware/App/Controllers/Heaters.c (.../Heaters.c) (revision 08d27319b4b5f6f15e5de0758d9f528db1db6b3a) @@ -544,17 +544,19 @@ { F32 tempDutyCycle = 0.0F; F32 targetTemperature = heatersStatus[ DG_TRIMMER_HEATER ].targetTemp; - F32 targetFlowLPM = heatersStatus[ DG_TRIMMER_HEATER ].targetFlow; + F32 targetFlowLPM = getTargetROPumpFlowRateLPM(); F32 dutyCycle = calculateTrimmerHeaterDutyCycle( targetTemperature, heatDisinfectSensorTemp, targetFlowLPM, FALSE ); heaterControlCounter = 0; // Trimmer heater duty cycle function checks the minimum to -100%. So if the duty cycle was calculated to be negative it is set to 0 here tempDutyCycle = MAX( dutyCycle, HEATERS_MIN_DUTY_CYCLE ); + heatersStatus[ DG_TRIMMER_HEATER ].targetFlow = getTargetROPumpFlowRateLPM(); setHeaterDutyCycle( DG_TRIMMER_HEATER, tempDutyCycle ); targetTemperature = heatersStatus[ DG_PRIMARY_HEATER ].targetTemp; - targetFlowLPM = heatersStatus[ DG_PRIMARY_HEATER ].targetFlow; + targetFlowLPM = getTargetROPumpFlowRateLPM(); dutyCycle = calculatePrimaryHeaterDutyCycle( targetTemperature, heatDisinfectSensorTemp, targetFlowLPM, FALSE ); + heatersStatus[ DG_PRIMARY_HEATER ].targetFlow = getTargetROPumpFlowRateLPM(); setHeaterDutyCycle( DG_PRIMARY_HEATER, dutyCycle ); } @@ -883,8 +885,9 @@ else #endif { + // TODO this is not working on DVT-002 // If the system is DVT, check the FPGA persistent alarm of the main primary heater's voltage ADC - checkFPGAPersistentAlarms( FPGA_PERS_ERROR_MAIN_PRIMARY_HEATER_VOLTAGE_ADC, getFPGAHeaterGateADCErrorCount(), getFPGAHeaterGateADCReadCount() ); + //checkFPGAPersistentAlarms( FPGA_PERS_ERROR_MAIN_PRIMARY_HEATER_VOLTAGE_ADC, getFPGAHeaterGateADCErrorCount(), getFPGAHeaterGateADCReadCount() ); } F32 smallPriVoltage = getMonitoredLineLevel( MONITORED_LINE_24V_GND_SMALL_PRIM_HTR_V );