Browse Source

🔧 Update Creality 4.2.2 Driver Warning (#24806)

Keith Bennett 1 year ago
parent
commit
18b6d6c8ca
No account linked to committer's email address
2 changed files with 3 additions and 5 deletions
  1. 2
    2
      Marlin/src/inc/Warnings.cpp
  2. 1
    3
      Marlin/src/pins/stm32f1/pins_CREALITY_V422.h

+ 2
- 2
Marlin/src/inc/Warnings.cpp View File

@@ -711,8 +711,8 @@
711 711
   #warning "Don't forget to update your TFT settings in Configuration.h."
712 712
 #endif
713 713
 
714
-#if ENABLED(EMIT_CREALITY_422_WARNING)
715
-  #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.)"
714
+#if ENABLED(EMIT_CREALITY_422_WARNING) && DISABLED(NO_CREALITY_422_DRIVER_WARNING)
715
+  #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 NO_CREALITY_422_DRIVER_WARNING to suppress this warning.)"
716 716
 #endif
717 717
 
718 718
 #if PRINTCOUNTER_SYNC

+ 1
- 3
Marlin/src/pins/stm32f1/pins_CREALITY_V422.h View File

@@ -28,8 +28,6 @@
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
31
+#define EMIT_CREALITY_422_WARNING
34 32
 
35 33
 #include "pins_CREALITY_V4.h"

Loading…
Cancel
Save