2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-15 22:26:04 +00:00

enhance CC-RT 2nd

git-svn-id: https://svn.fhem.de/fhem/trunk@3933 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2013-09-20 22:10:09 +00:00
parent 31a68e44b9
commit 057e53879d

View File

@ -2749,9 +2749,9 @@ sub CUL_HM_Set($@) {
$temp = CUL_HM_convTemp($temp);
return $temp if($temp =~ m/Invalid/);
$hByte = $h*6+($m/10);
$lByte = $temp;
$lByte = hex($temp);
}
$data .= sprintf("%02X%02X%02X%s", $addr, $hByte, $addr+1,$hByte);
$data .= sprintf("%02X%02X%02X%02X", $addr, $hByte, $addr+1,$lByte);
$addr += 2;
$hash->{TEMPLIST}{$wd}{($idx-2)/2}{HOUR} = $h;
@ -4120,7 +4120,7 @@ sub CUL_HM_RTtempReadings($) {# parse RT temperature readings
($hash->{helper}{shadowReg}{$regLN."07:"} ?"set":"verified"));
for (my $day = 0;$day<7;$day++){
my $dayRead = "";
for (my $idx = 0;$idx<($day+1) *13;$idx++){
for (my $idx = $day *13;$idx<($day+1) *13;$idx++){
my $entry = sprintf(" %s %3.01f",$time[$idx],$temp[$idx]);
$setting .= "Temp set: ".$days[$day].$entry." C\n";
$dayRead .= $entry;