浏览代码

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

Keith Bennett 2 年前
父节点
当前提交
1013323f18
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      Marlin/src/HAL/LPC1768/inc/Conditionals_post.h
  2. 1
    1
      Marlin/src/HAL/STM32/inc/Conditionals_post.h

+ 1
- 1
Marlin/src/HAL/LPC1768/inc/Conditionals_post.h 查看文件

@@ -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 查看文件

@@ -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

正在加载...
取消
保存