fixed a little bug
This commit is contained in:
parent
34bd2301da
commit
7efcab37c0
|
@ -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 ++;
|
||||
|
|
Loading…
Reference in New Issue