Browse Source

StopCounter

cuu 5 years ago
parent
commit
fc86c7361e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      sys.py/UI/counter_screen.py

+ 2 - 0
sys.py/UI/counter_screen.py

@@ -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")