CupCarbon icon indicating copy to clipboard operation
CupCarbon copied to clipboard

Minor issue in log messages for SenScriptCondition_LESS, SenScriptCondition_LESSEQUAL, SenScriptCondition_GREATEREQUAL, SenScriptCondition_GREATER

Open micdic opened this issue 3 years ago • 0 comments

A minor issue. The error message in second try catch statement of the evaluate() method of the classes reported in the title should be related to the arg2 variable:

try { v2 = Double.valueOf(sensor.getScript().getVariableValue(arg2)); } catch(Exception e) { // System.err.println("[CupCarbon ERROR] (S"+sensor.getId()+"): Condition > ("+arg1+" is not a number)"); System.err.println("[CupCarbon ERROR] (S"+sensor.getId()+"): Condition > ("+arg2+" is not a number)"); //OK }

micdic avatar Nov 02 '21 09:11 micdic