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 9fdc2fb..b3fcc65 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();
        }
 }