2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 05:16:45 +00:00

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 1212b9a6b4
commit e2dc0caa4b

View File

@ -1417,7 +1417,7 @@ KNX_checkAndClean ($$$)
#if max is numeric, cast to max #if max is numeric, cast to max
#$value = $max if (defined ($max) and ($max =~ /^[+-]?\d*[.,]?\d+/) and ($value > $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, 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"); Log3 ($name, 5, "check value: $value, gadName: $gadName, model: $model, pattern: $pattern");