]> www.fi.muni.cz Git - bike-lights.git/commitdiff
main.c: log the ambient light stats more often
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 13 Jun 2013 19:19:10 +0000 (21:19 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 13 Jun 2013 19:19:10 +0000 (21:19 +0200)
firmware/main.c

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