瀏覽代碼

Fix Due wired EEPROM init (#18074)

Chris Pepper 5 年之前
父節點
當前提交
4f1ebb4440
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/HAL/DUE/eeprom_wired.cpp

+ 1
- 1
Marlin/src/HAL/DUE/eeprom_wired.cpp 查看文件

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

Loading…
取消
儲存