瀏覽代碼

⚡️ 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

Loading…
取消
儲存