mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
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:
parent
03ccf2c0bd
commit
3fbd443c87
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user