Browse Source

Fix Due wired EEPROM init (#18074)

vanilla_fb_2.0.x
Chris Pepper 4 years ago
committed by GitHub
parent
commit
4f1ebb4440
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Marlin/src/HAL/DUE/eeprom_wired.cpp

2
Marlin/src/HAL/DUE/eeprom_wired.cpp

@ -38,7 +38,7 @@
#error "MARLIN_EEPROM_SIZE is required for I2C / SPI EEPROM."
#endif
size_t PersistentStore::capacity() { return MARLIN_EEPROM_SIZE; }
bool PersistentStore::access_start() { return true; }
bool PersistentStore::access_start() { eeprom_init(); return true; }
bool PersistentStore::access_finish() { return true; }
bool PersistentStore::write_data(int &pos, const uint8_t *value, size_t size, uint16_t *crc) {

Loading…
Cancel
Save