Browse Source

🔨 Suppressible Creality 4.2.2 warning (#24683)

Lefteris Garyfalakis 1 year ago
parent
commit
2a2c161d87
No account linked to committer's email address
2 changed files with 6 additions and 3 deletions
  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 View File

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

@@ -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…
Cancel
Save