mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
KS300: negative temp & strangeTemp fix
git-svn-id: https://svn.fhem.de/fhem/trunk@26862 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bb24f3d28a
commit
2de2c14bbd
@ -205,6 +205,7 @@ KS300_Parse($$)
|
||||
$v[3] = "$a[22]$a[21]" + 0;
|
||||
$v[4] = "$a[20]$a[19].$a[18]" + 0;
|
||||
$v[4] = sprintf("%0.1f", $v[4]);
|
||||
$v[4] = -$v[4] if(hex($v[8]) & 8); # Negative temp
|
||||
$v[5] = ((hex($a[17]) & 0x2) || $haverain) ? "yes" : "no";
|
||||
$v[6] = $a[29];
|
||||
$v[7] = $a[16];
|
||||
@ -220,8 +221,6 @@ KS300_Parse($$)
|
||||
}
|
||||
}
|
||||
|
||||
# Negative temp
|
||||
$v[4] = -$v[4] if(hex($v[8]) & 8);
|
||||
|
||||
Log3 $def, 4, "KS300 $dev: $msg";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user