CupCarbon
CupCarbon copied to clipboard
Minor issue in log messages for SenScriptCondition_LESS, SenScriptCondition_LESSEQUAL, SenScriptCondition_GREATEREQUAL, SenScriptCondition_GREATER
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 }