Skip to content

Commit

Permalink
🔨 Suppressible Creality 4.2.2 warning (MarlinFirmware#24683)
Browse files Browse the repository at this point in the history
  • Loading branch information
lefterisgar authored and imp67 committed Sep 4, 2022
1 parent baed90b commit dbb8e38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Marlin/src/inc/Warnings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,8 @@
#warning "Don't forget to update your TFT settings in Configuration.h."
#endif

// Ender 3 Pro (but, apparently all Creality 4.2.2 boards)
#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)."
#if ENABLED(EMIT_CREALITY_422_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 EMIT_CREALITY_422_WARNING false to suppress this warning.)"
#endif

#if PRINTCOUNTER_SYNC
Expand Down
4 changes: 4 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,8 @@
#define BOARD_INFO_NAME "Creality v4.2.2"
#define DEFAULT_MACHINE_NAME "Creality3D"

#ifndef EMIT_CREALITY_422_WARNING
#define EMIT_CREALITY_422_WARNING
#endif

#include "pins_CREALITY_V4.h"

0 comments on commit dbb8e38

Please sign in to comment.