From: Jan "Yenya" Kasprzak Date: Mon, 22 Jul 2013 21:00:40 +0000 (+0200) Subject: main.c: don't log ambient lights too often X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=02c4abfe1e23e2766971fa9616cc3e5396b9744f;p=bike-lights.git main.c: don't log ambient lights too often --- diff --git a/firmware/main.c b/firmware/main.c index 9fdc2fb..b3fcc65 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -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(); } }