ambient.c: longer log; adjustments for Pavlina
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 22 Jul 2013 21:00:19 +0000 (23:00 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 22 Jul 2013 21:00:19 +0000 (23:00 +0200)
firmware/ambient.c

index 9dbf600..33952a8 100644 (file)
@@ -11,7 +11,7 @@ volatile unsigned char ambient_zone, ambient_shadow;
 static unsigned char ambient_min, ambient_max, ambient_drop;
 
 /* logging */
-#define AMBIENT_LOG_SIZE 128
+#define AMBIENT_LOG_SIZE 256
 static unsigned char ambient_log_offset_stored EEMEM;
 static unsigned char ambient_log_offset;
 static unsigned char ambient_log[AMBIENT_LOG_SIZE] EEMEM;
@@ -27,10 +27,10 @@ typedef struct {
  */
 static ambient_zone_t ambient_zones[N_AMBIENT_ZONES] = {
 #ifdef PAVLINA
-       { 0x0000, 0x0290 }, // dark
-       { 0x0278, 0x02f8 }, // evening
-       { 0x02d8, 0x0310 }, // dawn
-       { 0x0308, 0xffff }, // day
+       { 0x0000, 0x02b0 }, // dark
+       { 0x0298, 0x0308 }, // evening
+       { 0x02e8, 0x0320 }, // dawn
+       { 0x0318, 0xffff }, // day
 #else
        { 0x0000, 0x0250 }, // dark
        { 0x0240, 0x02e0 }, // evening