From fc86c7361e43bbe16ed32046c12c20066660fb64 Mon Sep 17 00:00:00 2001 From: cuu Date: Thu, 5 Jul 2018 11:52:27 +0800 Subject: [PATCH] StopCounter --- sys.py/UI/counter_screen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys.py/UI/counter_screen.py b/sys.py/UI/counter_screen.py index d331152..55b776d 100644 --- a/sys.py/UI/counter_screen.py +++ b/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")