Index: firmware/App/Controllers/UVReactors.c =================================================================== diff -u -rd7be59e36db5e9899b02dd0bfadadc50fed934c0 -r8074ecece0b11532c173ad951a98036f0c54ca52 --- firmware/App/Controllers/UVReactors.c (.../UVReactors.c) (revision d7be59e36db5e9899b02dd0bfadadc50fed934c0) +++ firmware/App/Controllers/UVReactors.c (.../UVReactors.c) (revision 8074ecece0b11532c173ad951a98036f0c54ca52) @@ -20,6 +20,7 @@ #include "AlarmMgmt.h" #include "Common.h" +#include "FlowSensors.h" #include "MessageSupport.h" #include "PersistentAlarm.h" #include "SystemCommMessages.h" @@ -375,7 +376,7 @@ if ( TURN_ON == reactorsStatus[ reactor ].switchState ) { // Check if the flow is below minimum - reactorsStatus[ reactor ].isFlowBelowMin = ( getMeasuredROFlowRateLPM() < MIN_RO_UV_FLOWRATE_LPM ? TRUE : FALSE ); + reactorsStatus[ reactor ].isFlowBelowMin = ( getMeasuredFlowRateLPM( RO_FLOW_SENSOR ) < MIN_RO_UV_FLOWRATE_LPM ? TRUE : FALSE ); // If the flow is no longer below minimum and the reactor is requested to be on, turn it back on if ( FALSE == reactorsStatus[ reactor ].isFlowBelowMin ) @@ -419,7 +420,7 @@ } // Check if the flow is below minimum - BOOL isFlowBelowMin = ( getMeasuredROFlowRateLPM() < MIN_RO_UV_FLOWRATE_LPM ? TRUE : FALSE ); + BOOL isFlowBelowMin = ( getMeasuredFlowRateLPM( RO_FLOW_SENSOR ) < MIN_RO_UV_FLOWRATE_LPM ? TRUE : FALSE ); if ( TRUE == isFlowBelowMin ) {