+ unsigned char r_count;
+
+ r_count = eeprom_read_byte(&reboot_count);
+
+ if (r_count < 5) {
+ r_count++;
+ eeprom_write_byte(&reboot_count, r_count);
+ can_write_eeprom = 1;
+ } else {
+ //eeprom_write_byte(&log_state, 0xFF);
+ can_write_eeprom = 0;
+ }
+