]> www.fi.muni.cz Git - bike-lights.git/commitdiff
main.c: don't log ambient lights too often
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 22 Jul 2013 21:00:40 +0000 (23:00 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 22 Jul 2013 21:00:40 +0000 (23:00 +0200)
firmware/main.c

index 9fdc2fb95bde5c3418f732b1bf9f1204da4d0432..b3fcc654099c4adacf9dd0262dd6d18066e53499 100644 (file)
@@ -107,7 +107,7 @@ static void inline do_timer()
                timer_start_slow_adcs();
        }
        ATOMIC_BLOCK(ATOMIC_FORCEON) {
-               if ((jiffies & 0x3FF) == 0)
+               if ((jiffies & 0x7FF) == 0)
                        ambient_log_min_max();
        }
 }