From: Art Cancro Date: Thu, 20 Feb 2020 17:03:29 +0000 (-0500) Subject: fix bad logic X-Git-Url: https://code.citadel.org/?p=the_perfect_clock.git;a=commitdiff_plain;h=02ae07e093b2002b7f5e86fbb593363d972ad7da fix bad logic --- diff --git a/the_perfect_clock.ino b/the_perfect_clock.ino index 2ca7d1f..917f568 100644 --- a/the_perfect_clock.ino +++ b/the_perfect_clock.ino @@ -313,7 +313,7 @@ void calibrate() static unsigned long last_calib = -86398000; unsigned long m = millis(); unsigned long mm = m - last_calib; - if (50000 < mm < 70000) { + if ((50000 < mm) && (mm < 70000)) { millis_per_minute = mm; } last_calib = m;