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
 
52
 
53
     SdFile file, root = card.getroot();
53
     SdFile file, root = card.getroot();
54
     if (!file.open(&root, EEPROM_FILENAME, O_RDONLY))
54
     if (!file.open(&root, EEPROM_FILENAME, O_RDONLY))
55
-      return false;
55
+      return true; // false aborts the save
56
 
56
 
57
     int bytes_read = file.read(HAL_eeprom_data, HAL_EEPROM_SIZE);
57
     int bytes_read = file.read(HAL_eeprom_data, HAL_EEPROM_SIZE);
58
     if (bytes_read < 0) return false;
58
     if (bytes_read < 0) return false;

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

450
   #define WORD_PADDED_EEPROM ENABLED(__STM32F1__, FLASH_EEPROM_EMULATION)
450
   #define WORD_PADDED_EEPROM ENABLED(__STM32F1__, FLASH_EEPROM_EMULATION)
451
 
451
 
452
   #if WORD_PADDED_EEPROM && ENABLED(DEBUG_EEPROM_READWRITE)
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
   #else
454
   #else
455
     #define UPDATE_TEST_INDEX(VAR) NOOP
455
     #define UPDATE_TEST_INDEX(VAR) NOOP
456
   #endif
456
   #endif

Loading…
Cancel
Save