diff --git a/mote/v2/avr/main.c b/mote/v2/avr/main.c index a5254f9..8b655bf 100644 --- a/mote/v2/avr/main.c +++ b/mote/v2/avr/main.c @@ -239,11 +239,8 @@ ISR(TIMER1_COMPA_vect) DBG_ISR_END(); } -ISR(ANALOG_COMP_vect) +ISR(TIMER1_CAPT_vect) { - if (!(ACSR & (1 << ACO))) - return; - disable_led(); event.brown_out++; @@ -318,6 +315,12 @@ void setup_timer1(void) // Enable output compare match interrupt for timer1 (DS p.136) TIMSK1 |= (1<