mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
LW12: fixed Warning
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@9440 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
509c51487e
commit
db712e9e63
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user