From 3bb1345b29935f76edff43150b3c58239f62e89f Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Thu, 17 Feb 2011 23:49:54 +0100 Subject: [PATCH] [avr] wrap setup functions in a cli/sei pair --- mote/v2/avr/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mote/v2/avr/main.c b/mote/v2/avr/main.c index a81f21d..69d8765 100644 --- a/mote/v2/avr/main.c +++ b/mote/v2/avr/main.c @@ -245,6 +245,7 @@ ISR(TIMER1_CAPT_vect) disable_led(); // throttle the cpu clock to draw less amps + // raises the number of bytes that can be written to EEPROM from 43 to 48 clock_prescale_set(clock_div_16); event.brown_out++; @@ -389,6 +390,8 @@ int main(void) { uint8_t i; + cli(); + // RS-485: Configure PD5=DE as output pin with low as default DDRD |= (1<