From 7efcab37c0d7b740f089caaef4aa85894f15b9c9 Mon Sep 17 00:00:00 2001 From: MrBesen Date: Wed, 28 Nov 2018 17:09:00 +0100 Subject: [PATCH] fixed a little bug --- LaserClock/LaserClock.ino | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/LaserClock/LaserClock.ino b/LaserClock/LaserClock.ino index 385d6c7..098e780 100644 --- a/LaserClock/LaserClock.ino +++ b/LaserClock/LaserClock.ino @@ -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 ++;