Skip to content

Commit 6902555

Browse files
author
Kevin J Walters
committed
Fixing incorrect t on display when going back to clock mode, now c.
1 parent b34e0aa commit 6902555

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zhhclock/zhhclock.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### zhhlocky.py v1.0
1+
### zhhlocky.py v1.1
22
### A clock and stopwatch with many backgrounds for Kitronik ZIP Halo HD
33

44
### copy this file to BBC micro:bit V2 as main.py
@@ -282,7 +282,7 @@ def show_display_image():
282282
if utime.ticks_diff(t2_ms, t1_ms) > VERY_LONG_PRESS_DURATION_MS:
283283
new_char = "t" ### [t]ime set
284284
elif utime.ticks_diff(t2_ms, t1_ms) > LONG_PRESS_DURATION_MS:
285-
new_char = mode[(mode_idx + 1 ) % len(mode)][0]
285+
new_char = mode[(mode_idx + 1 ) % ROTATE_MODES][0]
286286
elif utime.ticks_diff(t2_ms, t1_ms) > SHORT_PRESS_DURATION_MS:
287287
new_char = "b" ### next [b]ackground
288288

0 commit comments

Comments
 (0)