mirror of https://github.com/sqfmi/Watchy.git
Fix up and down button behavior when setting time. The up button should increment the number and the down button should decrement the number.
parent
c5ddfb4e7b
commit
245008ab47
|
@ -369,7 +369,7 @@ void Watchy::setTime() {
|
||||||
|
|
||||||
blink = 1 - blink;
|
blink = 1 - blink;
|
||||||
|
|
||||||
if (digitalRead(DOWN_BTN_PIN) == 1) {
|
if (digitalRead(UP_BTN_PIN) == 1) {
|
||||||
blink = 1;
|
blink = 1;
|
||||||
switch (setIndex) {
|
switch (setIndex) {
|
||||||
case SET_HOUR:
|
case SET_HOUR:
|
||||||
|
@ -392,7 +392,7 @@ void Watchy::setTime() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (digitalRead(UP_BTN_PIN) == 1) {
|
if (digitalRead(DOWN_BTN_PIN) == 1) {
|
||||||
blink = 1;
|
blink = 1;
|
||||||
switch (setIndex) {
|
switch (setIndex) {
|
||||||
case SET_HOUR:
|
case SET_HOUR:
|
||||||
|
|
Loading…
Reference in New Issue