Browse Source

🔧 Remove STM32F4 Print Counter Sanity Check (#24605)

Keith Bennett 1 year ago
parent
commit
03d9254079
No account linked to committer's email address

+ 1
- 1
Marlin/Configuration.h View File

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

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

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

Loading…
Cancel
Save