소스 검색

StopCounter

cuu 6 년 전
부모
커밋
fc86c7361e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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")