X-Git-Url: https://code.citadel.org/?p=the_perfect_clock.git;a=blobdiff_plain;f=the_perfect_clock.ino;h=917f5688e69da72cf5f82c19c7e853b5a8717422;hp=2ca7d1f0c5be1ede9bbf0c9c022d0747742e0e04;hb=02ae07e093b2002b7f5e86fbb593363d972ad7da;hpb=1544e2c3633e7fdd0858d80349c369c88620f95e 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;