소스 검색

🔧 Remove STM32F4 Print Counter Sanity Check (#24605)

Keith Bennett 1 년 전
부모
커밋
03d9254079
No account linked to committer's email address
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

Loading…
취소
저장