]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/ambient.c
ambient.c: make the sensor react faster
[bike-lights.git] / 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;