浏览代码

🔧 Remove STM32F4 Print Counter Sanity Check (#24605)

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

+ 1
- 1
Marlin/Configuration.h 查看文件

@@ -2362,7 +2362,7 @@
2362 2362
  */
2363 2363
 //#define PRINTCOUNTER
2364 2364
 #if ENABLED(PRINTCOUNTER)
2365
-  #define PRINTCOUNTER_SAVE_INTERVAL 60 // (minutes) EEPROM save interval during print
2365
+  #define PRINTCOUNTER_SAVE_INTERVAL 60 // (minutes) EEPROM save interval during print. A value of 0 will save stats at end of print.
2366 2366
 #endif
2367 2367
 
2368 2368
 // @section security

+ 5
- 0
Marlin/src/HAL/STM32/inc/Conditionals_post.h 查看文件

@@ -27,3 +27,8 @@
27 27
 #elif EITHER(I2C_EEPROM, SPI_EEPROM)
28 28
   #define USE_SHARED_EEPROM 1
29 29
 #endif
30
+
31
+// Some STM32F4 boards may lose steps when saving to EEPROM during print (PR #17946)
32
+#if defined(STM32F4xx) && PRINTCOUNTER_SAVE_INTERVAL > 0
33
+  #define PRINTCOUNTER_SYNC 1
34
+#endif

+ 0
- 5
Marlin/src/HAL/STM32/inc/SanityCheck.h 查看文件

@@ -37,11 +37,6 @@
37 37
   #error "SDCARD_EEPROM_EMULATION requires SDSUPPORT. Enable SDSUPPORT or choose another EEPROM emulation."
38 38
 #endif
39 39
 
40
-#if defined(STM32F4xx) && BOTH(PRINTCOUNTER, FLASH_EEPROM_EMULATION)
41
-  #warning "FLASH_EEPROM_EMULATION may cause long delays when writing and should not be used while printing."
42
-  #error "Disable PRINTCOUNTER or choose another EEPROM emulation."
43
-#endif
44
-
45 40
 #if !defined(STM32F4xx) && ENABLED(FLASH_EEPROM_LEVELING)
46 41
   #error "FLASH_EEPROM_LEVELING is currently only supported on STM32F4 hardware."
47 42
 #endif

正在加载...
取消
保存