]> www.fi.muni.cz Git - bike-lights.git/commitdiff
adc: log missed timer interrupts
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 21 Nov 2012 23:28:29 +0000 (00:28 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 21 Nov 2012 23:28:29 +0000 (00:28 +0100)
firmware/adc.c

index d0ee1c40f3377f17e40bd1f7662d662f72f8034f..298256f51580efceadda2b7f843bc20aff0119ed 100644 (file)
@@ -158,5 +158,7 @@ void timer_start_adcs()
 {
        if (current_adc == NUM_ADCS) // Don't start if in progress
                start_next_adc();
+       else
+               log_byte(0x99);
 }