Browse Source

⚡️ Only Sync Emulated EEPROM Print Counter (#24731)

Keith Bennett 2 years ago
parent
commit
1013323f18
No account linked to committer's email address

+ 1
- 1
Marlin/src/HAL/LPC1768/inc/Conditionals_post.h View File

@@ -29,6 +29,6 @@
29 29
 
30 30
 // LPC1768 boards seem to lose steps when saving to EEPROM during print (issue #20785)
31 31
 // TODO: Which other boards are incompatible?
32
-#if defined(MCU_LPC1768) && PRINTCOUNTER_SAVE_INTERVAL > 0
32
+#if defined(MCU_LPC1768) && ENABLED(FLASH_EEPROM_EMULATION) && PRINTCOUNTER_SAVE_INTERVAL > 0
33 33
   #define PRINTCOUNTER_SYNC 1
34 34
 #endif

+ 1
- 1
Marlin/src/HAL/STM32/inc/Conditionals_post.h View File

@@ -29,6 +29,6 @@
29 29
 #endif
30 30
 
31 31
 // Some STM32F4 boards may lose steps when saving to EEPROM during print (PR #17946)
32
-#if defined(STM32F4xx) && PRINTCOUNTER_SAVE_INTERVAL > 0
32
+#if defined(STM32F4xx) && ENABLED(FLASH_EEPROM_EMULATION) && PRINTCOUNTER_SAVE_INTERVAL > 0
33 33
   #define PRINTCOUNTER_SYNC 1
34 34
 #endif

Loading…
Cancel
Save