]> www.fi.muni.cz Git - bike-lights.git/commitdiff
ambient.c: make the sensor react faster
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 11 Apr 2013 19:49:12 +0000 (21:49 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 11 Apr 2013 19:49:12 +0000 (21:49 +0200)
firmware/ambient.c

index f62620862df49538a5a5ab282fb01d1168ec6f9e..a44e844fb4d0bbd76ec67f78c5357b9d1880d78f 100644 (file)
@@ -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;