From a7424eb6a8ef49005554b0ae7b2fb0c7749d9f3f 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: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2493 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/10_MAX.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FHEM/10_MAX.pm b/FHEM/10_MAX.pm index 1c0e45876..f2df8bad8 100755 --- a/FHEM/10_MAX.pm +++ b/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]));