1
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-04 22:19:38 +00:00

resetting $number count before entering while loop (in case of invalid cached number)

git-svn-id: https://svn.fhem.de/fhem/trunk@2813 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2013-02-25 21:41:13 +00:00
parent 3a7a215e74
commit 6d06b82ffe

View File

@ -478,6 +478,8 @@ PRESENCE_DoLocalFritzBoxScan($)
my $net_device; my $net_device;
$number = 0;
while($number <= $max) while($number <= $max)
{ {
$net_device=qx(/usr/bin/ctlmgr_ctl r landevice settings/landevice$number/name); $net_device=qx(/usr/bin/ctlmgr_ctl r landevice settings/landevice$number/name);