From 2d66ba745121a84b2ae4cb7f08283b37c3ac84d5 Mon Sep 17 00:00:00 2001 From: klaus-schauer <> Date: Sun, 17 Apr 2016 08:57:16 +0000 Subject: [PATCH] 10_EnOcean: subType roomCtrlPanel.01 corrected git-svn-id: https://svn.fhem.de/fhem/trunk@11260 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_EnOcean.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/10_EnOcean.pm b/fhem/FHEM/10_EnOcean.pm index 1dd1cf689..da6908e58 100755 --- a/fhem/FHEM/10_EnOcean.pm +++ b/fhem/FHEM/10_EnOcean.pm @@ -1,7 +1,7 @@ ############################################## # $Id$ -# 2016-04-16 +# 2016-04-17 # PID V1.0.0.9 # EnOcean Security in Perl, teach-in, VAES, MAC and message handling @@ -9596,7 +9596,7 @@ sub EnOcean_Parse($$) my $msgType = hex(substr($data, 1, 1)); my $setpointType = ReadingsVal($name, "setpointType", 'setpointShift'); my $waitingCmds = ReadingsVal($name, "waitingCmds", 0); - if (! $waitingCmds & 0x80) { + if (($waitingCmds & 0x80) == 0) { $setpointType = hex(substr($data, 0, 1)) & 8 ? 'setpointTemp' : 'setpointShift'; push @event, "3:setpointType:$setpointType"; }