From d6ea66f267301a512fc2e7ec54f1dede0d56cf54 Mon Sep 17 00:00:00 2001 From: kuzl <> Date: Sun, 11 Oct 2015 19:24:02 +0000 Subject: [PATCH] LW12: fixed Warning git-svn-id: https://svn.fhem.de/fhem/trunk@9440 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/98_LW12.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/contrib/98_LW12.pm b/fhem/contrib/98_LW12.pm index 4d6b5dd29..aa0df1b7d 100644 --- a/fhem/contrib/98_LW12.pm +++ b/fhem/contrib/98_LW12.pm @@ -434,7 +434,7 @@ sub LW12_Write( $$ ) { } else { Log3 $name, 4, "LW12: Can't connect to LW12!"; - return 0; + return "0"; } } @@ -475,7 +475,7 @@ sub LW12_updateStatus( $ ) { return if IsDisabled($name); my $res = LW12_Write( $hash, "\x{EF}\x{01}\x{77}" ); - if (hex($res) != 0){ + if ($res ne "0"){ $res = uc($res); my @colors = ( $res =~ m/..?/g );