From: Jan "Yenya" Kasprzak Date: Thu, 11 Apr 2013 19:49:12 +0000 (+0200) Subject: ambient.c: make the sensor react faster X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=commitdiff_plain;h=9b8d044bdc4a571d5bf6c59586accdd274a85ffb ambient.c: make the sensor react faster --- diff --git a/firmware/ambient.c b/firmware/ambient.c index f626208..a44e844 100644 --- a/firmware/ambient.c +++ b/firmware/ambient.c @@ -2,7 +2,7 @@ #include "lights.h" -#define AMBIENT_VAL_SHIFT 3 +#define AMBIENT_VAL_SHIFT 2 static uint16_t ambient_val; volatile unsigned char ambient_zone;