From: Jan "Yenya" Kasprzak Date: Thu, 13 Jun 2013 22:17:53 +0000 (+0200) Subject: ambient.c: log maximum and drop instead of min and drop X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=accd3529556e8deb9a93ec620c7b336e9e12286b;p=bike-lights.git ambient.c: log maximum and drop instead of min and drop --- diff --git a/firmware/ambient.c b/firmware/ambient.c index aeaa62a..00f5941 100644 --- a/firmware/ambient.c +++ b/firmware/ambient.c @@ -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;