]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/tmr.c
ambient: log minima and maxima
[bike-lights.git] / firmware / tmr.c
index f0d7d9350f59abb301bf131c54414d6ffb44028b..d53981a6b8d1dccfcc1655993d2568988559ee87 100644 (file)
@@ -34,7 +34,11 @@ ISR(TIMER0_COMPA_vect)
        if (--pattern_div == 0) {
                timer_check_buttons();
                patterns_next_tick();
+               timer_start_slow_adcs();
                pattern_div = PATTERN_DIV;
        }
+
+       if ((jiffies & 0x7FFF) == 0)
+               ambient_log_min_max();
 }