From b68b63e94c21eea49d6f4c7f370a0c11a27dad4a Mon Sep 17 00:00:00 2001 From: heikoranft <> Date: Wed, 18 Jun 2014 22:44:00 +0000 Subject: [PATCH] bugs git-svn-id: https://svn.fhem.de/fhem/trunk@6137 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/89_HEATRONIC.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/89_HEATRONIC.pm b/fhem/FHEM/89_HEATRONIC.pm index 5ed1b0877..c287b2d14 100644 --- a/fhem/FHEM/89_HEATRONIC.pm +++ b/fhem/FHEM/89_HEATRONIC.pm @@ -511,6 +511,8 @@ HEATRONIC_DecodeMsg_HC($$$) my $type; my $prefix = "hc1_"; + my $hc_Tdesired; + my $hc_Tmeasured; if (defined(HEATRONIC_CRCtest($hash,$string, $length))) { @@ -528,8 +530,8 @@ HEATRONIC_DecodeMsg_HC($$$) if ($length != 9) { - my $hc_Tdesired = hex(substr($string,8*2,4))/10; - my $hc_Tmeasured = hex(substr($string,10*2,4))/10; + $hc_Tdesired = hex(substr($string,8*2,4))/10; + $hc_Tmeasured = hex(substr($string,10*2,4))/10; } my $hc_mode = hex(substr($string,6*2,2));