MAX: Fix WallThermostat parsing

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2493 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre
2013-01-12 15:23:26 +00:00
parent 11cd4dd546
commit 9166f75da6

View File

@@ -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]));