From a18c06bac26e7584f44dce017133433128e2ec30 Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Sat, 17 Dec 2016 15:29:01 +0000 Subject: [PATCH] 70_ENIGMA2: lc for WOL_mode git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12798 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/70_ENIGMA2.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FHEM/70_ENIGMA2.pm b/FHEM/70_ENIGMA2.pm index 842e2c4dd..f0329f62a 100644 --- a/FHEM/70_ENIGMA2.pm +++ b/FHEM/70_ENIGMA2.pm @@ -2243,16 +2243,16 @@ sub ENIGMA2_wake ($$) { AttrVal( $name, "WOL_useUdpBroadcast", AttrVal( $name, "useUdpBroadcast", "255.255.255.255" ) ); my $port = AttrVal( $name, "WOL_port", "9" ); - my $mode = AttrVal( $name, "WOL_mode", "UDP" ); + my $mode = lc( AttrVal( $name, "WOL_mode", "UDP" ) ); Log3 $name, 4, "ENIGMA2 $name: Waking up by sending Wake-On-Lan magic package to " . $mac; - if ( $mode eq "BOTH" || $mode eq "EW" ) { + if ( $mode eq "both" || $mode eq "ew" ) { WOL_by_ew( $hash, $mac ); } - if ( $mode eq "BOTH" || $mode eq "UDP" ) { + if ( $mode eq "both" || $mode eq "udp" ) { WOL_by_udp( $hash, $mac, $host, $port ); } }