diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-02-23 20:19:37 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-02-23 20:19:37 (GMT) |
| commit | 41647556c1e4e7c4303967e513b7d4e7e87a1313 (patch) | |
| tree | 90623ed5cc81a9a1d4113f29fc106287f06c7d28 /wasp/clock.py | |
| parent | 3ba356f6c4a1b823444dd45138f46976ab252f66 (diff) | |
clock: Reduce the update rate of the battery meter
In addition to the fix (which is simple) we also modify the button handling
of the simulator because, rather by acident, it relies on the bugs in the
battery meter redraw to ensure the simulator stays active.
Diffstat (limited to 'wasp/clock.py')
| -rw-r--r-- | wasp/clock.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wasp/clock.py b/wasp/clock.py index 97919c9..68dc52f 100644 --- a/wasp/clock.py +++ b/wasp/clock.py @@ -36,8 +36,9 @@ class ClockApp(object): def update(self, watch): now = watch.rtc.get_localtime() if now[3] == self.on_screen[3] and now[4] == self.on_screen[4]: - if now[5] % 2 == 0: + if now[5] != self.on_screen[5]: self.meter.update() + self.on_screen = now return False display = watch.display |
