[avr] enable brown-out counter

This commit is contained in:
Bart Van Der Meerssche 2011-02-14 20:53:34 +01:00
parent efda61d08a
commit 4fc914558f
1 changed files with 2 additions and 0 deletions

View File

@ -243,6 +243,8 @@ ISR(ANALOG_COMP_vect)
{ {
disable_led(); disable_led();
event.brown_out++;
eeprom_write_block((const void*)&sensor, (void*)&EEPROM_sensor, sizeof(sensor)); eeprom_write_block((const void*)&sensor, (void*)&EEPROM_sensor, sizeof(sensor));
eeprom_write_block((const void*)&event, (void*)&EEPROM_event, sizeof(event)); eeprom_write_block((const void*)&event, (void*)&EEPROM_event, sizeof(event));