Skip to content

Commit

Permalink
fix start/stop statistic
Browse files Browse the repository at this point in the history
  • Loading branch information
p-eli committed Oct 16, 2015
1 parent e491cb3 commit effeb59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions createApGui/runningAp.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ def newCmdMsg(self, signal=None):

def runStatistic(self):
if self.__status['active']:
self.statisticThread = Statistic(self.mysignal,signalUpdateStatistic)
self.statisticThread.command = ['ifconfig'+' '+self.__activeAp['interface1']]
self.statisticThread.start()

def updateStatistic(self, signal=None):
msg = self.statisticThread.read()
if 'error' in msg:
if 'Device not found' in msg:
self.stopStatistic()
#todo some error msg
else:
if 'RX' in msg and 'bytes' in msg:
self.statisticLock.acquire()
Expand Down

0 comments on commit effeb59

Please sign in to comment.