mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 10:46:03 +00:00
98_WOL.: Perl Warning "Smartmatch is experimental" eliminated
git-svn-id: https://svn.fhem.de/fhem/trunk@8905 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
05d49726f0
commit
d80bd88633
@ -230,11 +230,11 @@ sub WOL_wake($){
|
||||
|
||||
Log3 $hash, 4, "[$name] keeping $name with MAC $mac IP $host busy";
|
||||
|
||||
if ($hash->{MODE} ~~ ["BOTH", "EW" ] ) {
|
||||
if ($hash->{MODE} eq "BOTH" || $hash->{MODE} eq "EW" ) {
|
||||
WOL_by_ew ($hash, $mac);
|
||||
readingsBulkUpdate ($hash, "packet_via_EW", $mac);
|
||||
}
|
||||
if ($hash->{MODE} ~~ ["BOTH", "UDP"] ) {
|
||||
if ($hash->{MODE} eq "BOTH" || $hash->{MODE} eq "UDP" ) {
|
||||
WOL_by_udp ($hash, $mac, $host);
|
||||
readingsBulkUpdate ($hash, "packet_via_UDP", $host);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user