mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
MAX: fix rounding of readings
git-svn-id: https://svn.fhem.de/fhem/trunk@3353 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
78716ad076
commit
0a9dafbe81
@ -557,8 +557,8 @@ MAXLAN_Parse($$)
|
|||||||
$minsetpointtemp /= 2.0;
|
$minsetpointtemp /= 2.0;
|
||||||
$windowopentemp /= 2.0;
|
$windowopentemp /= 2.0;
|
||||||
$windowopendur *= 5;
|
$windowopendur *= 5;
|
||||||
$maxvalvesetting *= 100/255;
|
$maxvalvesetting = int($maxvalvesetting*100/255);
|
||||||
$valveoffset *= 100/255;
|
$valveoffset = int($valveoffset*100/255);
|
||||||
my $decalcDay = ($decalcifiction >> 5) & 0x07;
|
my $decalcDay = ($decalcifiction >> 5) & 0x07;
|
||||||
my $decalcTime = $decalcifiction & 0x1F;
|
my $decalcTime = $decalcifiction & 0x1F;
|
||||||
Log $ll5, "comfortemp $comforttemp, ecotemp $ecotemp, boostValve $boostValve, boostDuration $boostDuration, tempoffset $tempoffset, minsetpointtemp $minsetpointtemp, maxsetpointtemp $maxsetpointtemp, windowopentemp $windowopentemp, windowopendur $windowopendur";
|
Log $ll5, "comfortemp $comforttemp, ecotemp $ecotemp, boostValve $boostValve, boostDuration $boostDuration, tempoffset $tempoffset, minsetpointtemp $minsetpointtemp, maxsetpointtemp $maxsetpointtemp, windowopentemp $windowopentemp, windowopendur $windowopendur";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user