From 9166f75da67ebb1a41f8283908261cd75e3794ad Mon Sep 17 00:00:00 2001 From: mgehre Date: Sat, 12 Jan 2013 15:23:26 +0000 Subject: [PATCH] MAX: Fix WallThermostat parsing git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2493 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_MAX.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/10_MAX.pm b/fhem/FHEM/10_MAX.pm index 1c0e45876..f2df8bad8 100755 --- a/fhem/FHEM/10_MAX.pm +++ b/fhem/FHEM/10_MAX.pm @@ -480,7 +480,7 @@ MAX_Parse($$) my ($bits2,$displayActualTemperature,$desiredTemperature,$null1,$heaterTemperature,$null2,$temperature); if( length($args[0]) == 4 ) { #This is the message that WallMountedThermostats send to paired HeatingThermostats - ($desiredTemperature,$temperature) = unpack("aCCCCCC",pack("H*",$args[0])); + ($desiredTemperature,$temperature) = unpack("CC",pack("H*",$args[0])); } elsif( length($args[0]) == 14 ) { #This is the message we get from the Cube over MAXLAN and which is probably send by WallMountedThermostats to the Cube ($bits2,$displayActualTemperature,$desiredTemperature,$null1,$heaterTemperature,$null2,$temperature) = unpack("aCCCCCC",pack("H*",$args[0]));