fix Undefined subroutine

fix Undefined subroutine &FHEM::Devices::LGTV::LGTVWebOS::inet_aton

[Ticket: no]
This commit is contained in:
Marko Oldenburg 2022-02-02 13:33:27 +01:00
parent f2d5e9ddca
commit 143870e40d
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
UPD 2022-02-02_12:25:53 18011 FHEM/82_LGTV_WebOS.pm UPD 2022-02-02_12:25:53 18011 FHEM/82_LGTV_WebOS.pm
UPD 2022-02-02_12:25:53 54234 lib/FHEM/Devices/LGTV/LGTVWebOS.pm UPD 2022-02-02_13:30:55 54238 lib/FHEM/Devices/LGTV/LGTVWebOS.pm

View File

@ -1808,8 +1808,8 @@ sub WakeUp_Udp {
return 1; return 1;
} }
my $ip_addr = inet_aton($host); my $ip_addr = ::inet_aton($host);
my $sock_addr = sockaddr_in( $port, $ip_addr ); my $sock_addr = ::sockaddr_in( $port, $ip_addr );
$mac_addr =~ s/://xg; $mac_addr =~ s/://xg;
my $packet = my $packet =
pack( 'C6H*', 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, $mac_addr x 16 ); pack( 'C6H*', 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, $mac_addr x 16 );