From 5f481a3bf593b659a214fc4d77e1c7684405a8ec Mon Sep 17 00:00:00 2001 From: mgehre Date: Thu, 31 Jan 2013 00:17:37 +0000 Subject: [PATCH] MAX: fix last commit git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2612 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 cb1a99640..cfb7e1583 100755 --- a/fhem/FHEM/10_MAX.pm +++ b/fhem/FHEM/10_MAX.pm @@ -343,7 +343,7 @@ MAX_Set($@) my $arg2 = int(10*$args[2]); #First bit is 9th bit of temperature, rest is desiredTemperature my $arg1 = (($arg2&0x100)>>1) | (int(2*$args[1])&0x7F); - $args2 &= 0xFF; + $arg2 &= 0xFF; #only take the lower 8 bits return ($hash->{IODev}{Send})->($hash->{IODev},"WallThermostatState",$dest, sprintf("%02x%02x",$arg1,$arg2),"04",undef,undef,$hash->{addr});