summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-04-20 17:57:48 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-04-26 14:01:48 (GMT)
commite8549982683bb31b3d8dd27a0dda37131319e77d (patch)
tree67182e630790911d5396aedf0e900cd613c44ac6
parent9348e758b20a84502baabe46e400dee1811fdd4c (diff)
apps: stopwatch: Fix redraw bug (and remove some old test code)
-rw-r--r--wasp/apps/stopwatch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wasp/apps/stopwatch.py b/wasp/apps/stopwatch.py
index 5a19ddd..f953e6f 100644
--- a/wasp/apps/stopwatch.py
+++ b/wasp/apps/stopwatch.py
@@ -12,7 +12,7 @@ class StopwatchApp():
def __init__(self):
self._meter = wasp.widgets.BatteryMeter()
self._reset()
- self._count = 999*6000
+ self._count = 0
def foreground(self):
"""Activate the application."""
@@ -90,6 +90,7 @@ class StopwatchApp():
draw = wasp.watch.drawable
draw.fill()
+ self._last_count = -1
self._update()
self._meter.draw()
self._draw_splits()