kopia lustrzana https://github.com/pimoroni/pimoroni-pico
badger2040: Only 24 hours in a day (not 60)
rodzic
3ce347799b
commit
548b0dd0c0
|
@ -65,7 +65,7 @@ def button(pin):
|
|||
day = min(max(day, 1), 31)
|
||||
if cursors[cursor] == "hour":
|
||||
hour += adjust
|
||||
hour %= 60
|
||||
hour %= 24
|
||||
if cursors[cursor] == "minute":
|
||||
minute += adjust
|
||||
minute %= 60
|
||||
|
|
Ładowanie…
Reference in New Issue