X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=firmware%2Fambient.c;h=00f5941dc7766bc26c143ce196ddc41d9b5a974a;hb=accd3529556e8deb9a93ec620c7b336e9e12286b;hp=b8397532026fed989d06ff6454974be46e043850;hpb=1dcbf67055a7a51031a57db46d899ade790b2d30;p=bike-lights.git diff --git a/firmware/ambient.c b/firmware/ambient.c index b839753..00f5941 100644 --- a/firmware/ambient.c +++ b/firmware/ambient.c @@ -24,8 +24,8 @@ typedef struct { * and having small overlaps in order to provide a bit of hysteresis. */ static ambient_zone_t ambient_zones[] = { - { 0x0000 , 0x0280<= AMBIENT_LOG_SIZE - 1) return; - eeprom_write_byte(&ambient_log[ambient_log_offset++], ambient_min); - // eeprom_write_byte(&ambient_log[ambient_log_offset++], ambient_max); + // eeprom_write_byte(&ambient_log[ambient_log_offset++], ambient_min); + eeprom_write_byte(&ambient_log[ambient_log_offset++], ambient_max); eeprom_write_byte(&ambient_log[ambient_log_offset++], ambient_16drop); ambient_min = 0xFF;