Selaa lähdekoodia

🔧 Update Creality 4.2.2 Driver Warning (#24806)

Keith Bennett 1 vuosi sitten
vanhempi
commit
18b6d6c8ca
No account linked to committer's email address

+ 2
- 2
Marlin/src/inc/Warnings.cpp Näytä tiedosto

711
   #warning "Don't forget to update your TFT settings in Configuration.h."
711
   #warning "Don't forget to update your TFT settings in Configuration.h."
712
 #endif
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
 #endif
716
 #endif
717
 
717
 
718
 #if PRINTCOUNTER_SYNC
718
 #if PRINTCOUNTER_SYNC

+ 1
- 3
Marlin/src/pins/stm32f1/pins_CREALITY_V422.h Näytä tiedosto

28
 #define BOARD_INFO_NAME      "Creality v4.2.2"
28
 #define BOARD_INFO_NAME      "Creality v4.2.2"
29
 #define DEFAULT_MACHINE_NAME "Creality3D"
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
 #include "pins_CREALITY_V4.h"
33
 #include "pins_CREALITY_V4.h"

Loading…
Peruuta
Tallenna