Browse Source

Non-fatal error from ps::access_start (#14845)

Tanguy Pruvot 5 years ago
parent
commit
92c35d14a4

+ 1
- 1
Marlin/src/HAL/HAL_STM32F1/persistent_store_sdcard.cpp View File

@@ -52,7 +52,7 @@ static char _ALIGN(4) HAL_eeprom_data[HAL_EEPROM_SIZE];
52 52
 
53 53
     SdFile file, root = card.getroot();
54 54
     if (!file.open(&root, EEPROM_FILENAME, O_RDONLY))
55
-      return false;
55
+      return true; // false aborts the save
56 56
 
57 57
     int bytes_read = file.read(HAL_eeprom_data, HAL_EEPROM_SIZE);
58 58
     if (bytes_read < 0) return false;

+ 1
- 1
Marlin/src/module/configuration_store.cpp View File

@@ -450,7 +450,7 @@ void MarlinSettings::postprocess() {
450 450
   #define WORD_PADDED_EEPROM ENABLED(__STM32F1__, FLASH_EEPROM_EMULATION)
451 451
 
452 452
   #if WORD_PADDED_EEPROM && ENABLED(DEBUG_EEPROM_READWRITE)
453
-    #define UPDATE_TEST_INDEX(VAR) (text_index += sizeof(VAR))
453
+    #define UPDATE_TEST_INDEX(VAR) (test_index += sizeof(VAR))
454 454
   #else
455 455
     #define UPDATE_TEST_INDEX(VAR) NOOP
456 456
   #endif

Loading…
Cancel
Save