X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=firmware%2Fambient.c;h=4818ab4a8e7a63f596103dc92afca45386c664f0;hb=15758319e9901ada7e67a7c0c3288e53d803f059;hp=b8397532026fed989d06ff6454974be46e043850;hpb=1dcbf67055a7a51031a57db46d899ade790b2d30;p=bike-lights.git diff --git a/firmware/ambient.c b/firmware/ambient.c index b839753..4818ab4 100644 --- a/firmware/ambient.c +++ b/firmware/ambient.c @@ -24,10 +24,10 @@ 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;