]> www.fi.muni.cz Git - bike-lights.git/commitdiff
main.c: disable also the analog comparator
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 21 Nov 2012 17:14:09 +0000 (18:14 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 21 Nov 2012 17:14:09 +0000 (18:14 +0100)
firmware/main.c

index 02e75d9adfdc868d53aceede6cc9c0cd00f82f1d..ea3bb69d1384dd5840c5e6a90066dda0807a229c 100644 (file)
@@ -88,7 +88,9 @@ ISR(PCINT_vect)
 int main(void)
 {
        log_init();
+
        power_usi_disable(); // Once for lifetime
+       ACSRA |= _BV(ACD);   // disable analog comparator
 
        log_set_state(3);