]> www.fi.muni.cz Git - bike-lights.git/commitdiff
ambient.c: log maximum and drop instead of min and drop
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 13 Jun 2013 22:17:53 +0000 (00:17 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 13 Jun 2013 22:17:53 +0000 (00:17 +0200)
firmware/ambient.c

index aeaa62ac8e5436bf13b3fa4c315078c87e1fd0e0..00f5941dc7766bc26c143ce196ddc41d9b5a974a 100644 (file)
@@ -63,8 +63,8 @@ void ambient_log_min_max()
        if (ambient_log_offset >= 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;