10_KNX.pm: fixed scaling algo

git-svn-id: https://svn.fhem.de/fhem/trunk@16859 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
andi291
2018-06-13 10:01:14 +00:00
parent f0747f222a
commit c7add63baf

View File

@@ -1417,7 +1417,7 @@ KNX_checkAndClean ($$$)
#if max is numeric, cast to max
#$value = $max if (defined ($max) and ($max =~ /^[+-]?\d*[.,]?\d+/) and ($value > $max));
$value = KNX_limit ($hash, $value, $gadName);
$value = KNX_limit ($hash, $value, $gadName, undef);
Log3 ($name, 3, "check value: input-value $orgValue was casted to $value") if (not($orgValue eq $value));
Log3 ($name, 5, "check value: $value, gadName: $gadName, model: $model, pattern: $pattern");