70_ENIGMA2: lc for WOL_mode

git-svn-id: https://svn.fhem.de/fhem/trunk@12798 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
loredo
2016-12-17 15:29:01 +00:00
parent ed5bf59f50
commit c1afb4b2f4

View File

@@ -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 );
}
}