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<