pull/17/head
Holger Wirtz 5 years ago
parent d1706cfe92
commit 99db6afa52
  1. 2
      MicroDexed.ino

@ -1263,7 +1263,9 @@ void eeprom_update(void)
configuration.checksum = crc32((byte*)&configuration + 4, sizeof(configuration) - 4);
EEPROM.put(EEPROM_START_ADDRESS, configuration);
Serial.println(F("Updating EEPROM"));
#ifdef DEBUG
show_configuration();
#endif
}
uint32_t crc32(byte * calc_start, uint16_t calc_bytes) // base code from https://www.arduino.cc/en/Tutorial/EEPROMCrc

Loading…
Cancel
Save