Bläddra i källkod

Fix Due EEPROM write bug

See #13065
Scott Lahteine 5 år sedan
förälder
incheckning
422dd6666e
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1
    0
      Marlin/src/HAL/HAL_DUE/persistent_store_eeprom.cpp

+ 1
- 0
Marlin/src/HAL/HAL_DUE/persistent_store_eeprom.cpp Visa fil

@@ -52,6 +52,7 @@ bool PersistentStore::write_data(int &pos, const uint8_t *value, size_t size, ui
52 52
     // so only write bytes that have changed!
53 53
     if (v != eeprom_read_byte(p)) {
54 54
       eeprom_write_byte(p, v);
55
+      delay(2);
55 56
       if (eeprom_read_byte(p) != v) {
56 57
         SERIAL_ECHO_MSG(MSG_ERR_EEPROM_WRITE);
57 58
         return true;

Laddar…
Avbryt
Spara