From 245008ab47712f259c87b86d6580c23e364e4ea5 Mon Sep 17 00:00:00 2001 From: tunnelpuzzle <79618312+tunnelpuzzle@users.noreply.github.com> Date: Tue, 5 Jul 2022 18:37:38 -0600 Subject: [PATCH] Fix up and down button behavior when setting time. The up button should increment the number and the down button should decrement the number. --- src/Watchy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Watchy.cpp b/src/Watchy.cpp index 98e94e3..bd59442 100644 --- a/src/Watchy.cpp +++ b/src/Watchy.cpp @@ -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: