fixed a little bug

This commit is contained in:
MrBesen 2018-11-28 17:09:00 +01:00
parent 34bd2301da
commit 7efcab37c0
1 changed files with 2 additions and 3 deletions

View File

@ -50,7 +50,7 @@ void countTime() {
if(60 == ++min) {
min = 0;
if(13 == ++hour) {
hour = 0;
hour = 1;
}
}
}
@ -81,8 +81,7 @@ void setup() {
timeout = millis();//reset timeout
pres = true;
if(mode == 0) {//count hour
hour ++;
if(hour == 13)
if(++hour == 13)
hour = 1;
} else {//count min
min ++;