X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=firmware%2Fambient.c;h=f6e8ae5f5be088eba62d2efc6533b495e5a254bd;hb=5d0f6ceb47eed2282aeb11eb57eebc390add234e;hp=735f80e968a940c7a77dc210bb73d07c0ee16ace;hpb=cb10e19fb7311df4c3c14b64064c3d9a44fdacd1;p=bike-lights.git diff --git a/firmware/ambient.c b/firmware/ambient.c index 735f80e..f6e8ae5 100644 --- a/firmware/ambient.c +++ b/firmware/ambient.c @@ -15,10 +15,10 @@ typedef struct { * and having small overlaps in order to provide a bit of hysteresis. */ static ambient_zone_t ambient_zones[] = { - { 0x0000, 0x3400 }, // dark - { 0x3300, 0x5000 }, - { 0x4c00, 0x8000 }, - { 0x7800, 0xffff } + { 0x0000, 0xb000 }, // dark + { 0xa800, 0xc700 }, + { 0xc600, 0xcb00 }, + { 0xca80, 0xffff } }; #define N_AMBIENT_ZONES (sizeof(ambient_zones)/sizeof(ambient_zones[0]))