瀏覽代碼

🔨 Suppressible Creality 4.2.2 warning (#24683)

Lefteris Garyfalakis 1 年之前
父節點
當前提交
2a2c161d87
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 6 行新增3 行删除
  1. 2
    3
      Marlin/src/inc/Warnings.cpp
  2. 4
    0
      Marlin/src/pins/stm32f1/pins_CREALITY_V422.h

+ 2
- 3
Marlin/src/inc/Warnings.cpp 查看文件

@@ -707,9 +707,8 @@
707 707
   #warning "Don't forget to update your TFT settings in Configuration.h."
708 708
 #endif
709 709
 
710
-// Ender 3 Pro (but, apparently all Creality 4.2.2 boards)
711
-#if ENABLED(EMIT_CREALITY_422_WARNING) || MB(CREALITY_V4)
712
-  #warning "Creality 4.2.2 boards come with a variety of stepper drivers. Check the board label and set the correct *_DRIVER_TYPE! (C=HR4988, E=A4988, A=TMC2208, B=TMC2209, H=TMC2225)."
710
+#if ENABLED(EMIT_CREALITY_422_WARNING)
711
+  #warning "Creality 4.2.2 boards come with a variety of stepper drivers. Check the board label and set the correct *_DRIVER_TYPE! (C=HR4988, E=A4988, A=TMC2208, B=TMC2209, H=TMC2225). (Define EMIT_CREALITY_422_WARNING false to suppress this warning.)"
713 712
 #endif
714 713
 
715 714
 #if PRINTCOUNTER_SYNC

+ 4
- 0
Marlin/src/pins/stm32f1/pins_CREALITY_V422.h 查看文件

@@ -28,4 +28,8 @@
28 28
 #define BOARD_INFO_NAME      "Creality v4.2.2"
29 29
 #define DEFAULT_MACHINE_NAME "Creality3D"
30 30
 
31
+#ifndef EMIT_CREALITY_422_WARNING
32
+  #define EMIT_CREALITY_422_WARNING
33
+#endif
34
+
31 35
 #include "pins_CREALITY_V4.h"

Loading…
取消
儲存