瀏覽代碼
⚡️ Only Sync Emulated EEPROM Print Counter (#24731)
Keith Bennett
2 年之前
No account linked to committer's email address
|
@@ -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
|
|
@@ -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
|