Index: firmware/App/Controllers/DialInFlow.c =================================================================== diff -u -rc45f78c0ff3b0a866b7f6233092a2e611e801460 -rd23f94b810d65dd54809b0bfeb32f0f763051d4d --- firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision c45f78c0ff3b0a866b7f6233092a2e611e801460) +++ firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision d23f94b810d65dd54809b0bfeb32f0f763051d4d) @@ -784,8 +784,9 @@ *************************************************************************/ static F32 calcDialInFlow( void ) { - F32 estimatedFlow; - F32 QdTarget = getTargetDialInFlowRate(); + F32 estimatedFlow; + F32 QdTarget = getTargetDialInFlowRate(); + F32 deltaFlow; if (QdTarget >= DIAL_IN_FLOW_QHIGHTRANSITION) { @@ -815,17 +816,22 @@ } // Check the measured flow against estimated flow - / - F32 deltaFlow = 0.5 * estimatedFlow; // 50% estimated flow + deltaFlow = 0.5 * estimatedFlow; // 50% estimated flow //if ( deltaFlow < fabs( estimatedFlow - filteredDialInFlowMeterReading ) ) //{ // SET_ALARM_WITH_2_U32_DATA( ALARM_ID_HD_DIAL_IN_FLOW_CHECK_FAILURE, filteredDialInFlowMeterReading, estimatedFlow ); //} - - // Check measured rotor speed vs. measured motor speed while controlling to target - if ( ( TRUE == isPersistentAlarmTriggered( ALARM_ID_HD_DIAL_IN_FLOW_CHECK_FAILURE, deltaFlow < fabs( estimatedFlow - filteredDialInFlowMeterReading ) ) ) ) + if ( TRUE == isDialInPumpRunning() ) { - SET_ALARM_WITH_2_F32_DATA( ALARM_ID_HD_DIAL_IN_FLOW_CHECK_FAILURE, filteredDialInFlowMeterReading, estimatedFlow ); + if ( ( TRUE == isPersistentAlarmTriggered( ALARM_ID_HD_DIAL_IN_FLOW_CHECK_FAILURE, deltaFlow < fabs( estimatedFlow - filteredDialInFlowMeterReading ) ) ) ) // DN-31OCT2022 + { + SET_ALARM_WITH_2_F32_DATA( ALARM_ID_HD_DIAL_IN_FLOW_CHECK_FAILURE, filteredDialInFlowMeterReading, estimatedFlow ); + } } + else + { + isPersistentAlarmTriggered( ALARM_ID_HD_DIAL_IN_FLOW_CHECK_FAILURE, FALSE ); + } return estimatedFlow; }