Skip to content

Commit

Permalink
Apply only to 4.2.2 board
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 25, 2022
1 parent e57d156 commit c0145c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Marlin/src/inc/Warnings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -708,10 +708,8 @@
#endif

// Ender 3 Pro (but, apparently all Creality 4.2.2 boards)
#ifndef NO_CREALITY_STEPPER_WARNING
#if ENABLED(EMIT_CREALITY_422_WARNING) || MB(CREALITY_V4)
#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_STEPPER_WARNING to suppress this warning.)"
#endif
#if ENABLED(EMIT_CREALITY_422_WARNING) && DISABLED(NO_CREALITY_STEPPER_WARNING)
#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_STEPPER_WARNING to suppress this warning.)"
#endif

#if PRINTCOUNTER_SYNC
Expand Down
2 changes: 2 additions & 0 deletions Marlin/src/pins/stm32f1/pins_CREALITY_V422.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@
#define BOARD_INFO_NAME "Creality v4.2.2"
#define DEFAULT_MACHINE_NAME "Creality3D"

#define EMIT_CREALITY_422_WARNING

#include "pins_CREALITY_V4.h"

0 comments on commit c0145c0

Please sign in to comment.