Selaa lähdekoodia

🔧 Remove STM32F4 Print Counter Sanity Check (#24605)

Keith Bennett 2 vuotta sitten
vanhempi
commit
03d9254079
No account linked to committer's email address

+ 1
- 1
Marlin/Configuration.h Näytä tiedosto

2362
  */
2362
  */
2363
 //#define PRINTCOUNTER
2363
 //#define PRINTCOUNTER
2364
 #if ENABLED(PRINTCOUNTER)
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
 #endif
2366
 #endif
2367
 
2367
 
2368
 // @section security
2368
 // @section security

+ 5
- 0
Marlin/src/HAL/STM32/inc/Conditionals_post.h Näytä tiedosto

27
 #elif EITHER(I2C_EEPROM, SPI_EEPROM)
27
 #elif EITHER(I2C_EEPROM, SPI_EEPROM)
28
   #define USE_SHARED_EEPROM 1
28
   #define USE_SHARED_EEPROM 1
29
 #endif
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 Näytä tiedosto

37
   #error "SDCARD_EEPROM_EMULATION requires SDSUPPORT. Enable SDSUPPORT or choose another EEPROM emulation."
37
   #error "SDCARD_EEPROM_EMULATION requires SDSUPPORT. Enable SDSUPPORT or choose another EEPROM emulation."
38
 #endif
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
 #if !defined(STM32F4xx) && ENABLED(FLASH_EEPROM_LEVELING)
40
 #if !defined(STM32F4xx) && ENABLED(FLASH_EEPROM_LEVELING)
46
   #error "FLASH_EEPROM_LEVELING is currently only supported on STM32F4 hardware."
41
   #error "FLASH_EEPROM_LEVELING is currently only supported on STM32F4 hardware."
47
 #endif
42
 #endif

Loading…
Peruuta
Tallenna