From e8549982683bb31b3d8dd27a0dda37131319e77d Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Mon, 20 Apr 2020 18:57:48 +0100 Subject: [PATCH] apps: stopwatch: Fix redraw bug (and remove some old test code) --- wasp/apps/stopwatch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()