Fix up and down button behavior when setting time. The up button should increment the number and the down button should decrement the number.

pull/173/head
tunnelpuzzle 2022-07-05 18:37:38 -06:00
parent c5ddfb4e7b
commit 245008ab47
1 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,7 @@ void Watchy::setTime() {
blink = 1 - blink;
if (digitalRead(DOWN_BTN_PIN) == 1) {
if (digitalRead(UP_BTN_PIN) == 1) {
blink = 1;
switch (setIndex) {
case SET_HOUR:
@ -392,7 +392,7 @@ void Watchy::setTime() {
}
}
if (digitalRead(UP_BTN_PIN) == 1) {
if (digitalRead(DOWN_BTN_PIN) == 1) {
blink = 1;
switch (setIndex) {
case SET_HOUR: