StopCounter

This commit is contained in:
cuu 2018-07-05 11:52:27 +08:00
parent 2ebfc7b2fe
commit fc86c7361e

View File

@ -72,6 +72,8 @@ class CounterScreen(FullScreen):
self._GobjectIntervalId = gobject.timeout_add(100,self.GObjectInterval)
def StopCounter(self):
if self._Counting == False:
return
self._Counting = False
self._Number = 10
commands.getstatusoutput("echo 0 > /proc/driver/led1")