From: hschang Date: Thu, 15 May 2014 10:22:10 +0000 (+0900) Subject: [WirelessLanSetup] fix AP scan interval X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=9341a728b0b3f0c004d5f94f3218f531b1af7ff9 [WirelessLanSetup] fix AP scan interval --- diff --git a/lib/python/Plugins/SystemPlugins/WirelessLanSetup/plugin.py b/lib/python/Plugins/SystemPlugins/WirelessLanSetup/plugin.py index 1331a69..24148a5 100755 --- a/lib/python/Plugins/SystemPlugins/WirelessLanSetup/plugin.py +++ b/lib/python/Plugins/SystemPlugins/WirelessLanSetup/plugin.py @@ -977,7 +977,7 @@ class WlanScanAp(Screen,HelpableScreen): def activateIface(self): os_system("ifconfig "+self.iface+" up") iNetwork.setAdapterAttribute(self.iface, "up", True) - self.updateStatusTimer.start(2000, True) + self.updateStatusTimer.start(10, True) def updateStatus(self): @@ -987,7 +987,7 @@ class WlanScanAp(Screen,HelpableScreen): def updateAPList(self): self.updateStatusTimer.stop() - self.updateStatusTimer.start(8000, True) + self.updateStatusTimer.start(5000, True) def left(self): self["aplist"].pageUp() @@ -1034,6 +1034,7 @@ class WlanScanAp(Screen,HelpableScreen): if Iwscanresult is None or len(Iwscanresult.aplist) == 0: self["Status"].setText(("NO AP detected")) + self.updateAPList() return try: