Преглед изворни кода

Fix 'AnalogToDigitTransitionStart' always using 9.2 regardless of the configured value.

After the recent parameter rename we're trying to compare the toUpper version of the config parameter against "AnalogToDigitTransitionStart" - which will always fail - hence always using the default value of 9.2.
Tomek Kopczuk пре 1 година
родитељ
комит
25ae0465d8
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp

+ 1 - 1
code/components/jomjol_flowcontroll/ClassFlowPostProcessing.cpp

@@ -564,7 +564,7 @@ bool ClassFlowPostProcessing::ReadParameter(FILE* pfile, string& aktparamgraph)
             handleDecimalSeparator(splitted[0], splitted[1]);
             handleDecimalSeparator(splitted[0], splitted[1]);
         }
         }
 	    
 	    
-        if ((toUpper(_param) == "AnalogToDigitTransitionStart") && (splitted.size() > 1)) {
+        if ((toUpper(_param) == "ANALOGTODIGITTRANSITIONSTART") && (splitted.size() > 1)) {
             handleAnalogToDigitTransitionStart(splitted[0], splitted[1]);
             handleAnalogToDigitTransitionStart(splitted[0], splitted[1]);
         }
         }