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

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2813 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2013-02-25 21:41:13 +00:00
parent 0d27b7792e
commit 28e6ab3f32

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