Skip to content

Commit

Permalink
clean up some #errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Apr 23, 2023
1 parent cdb827d commit 37a09eb
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 12 deletions.
4 changes: 1 addition & 3 deletions Marlin/src/pins/esp32/pins_E4D.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@

#include "env_validate.h"

#if EXTRUDERS > 1 || E_STEPPERS > 1
#error "E4d@box only supports 1 E stepper."
#elif HAS_MULTI_HOTEND
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "E4d@box only supports 1 hotend / E stepper."
#endif

Expand Down
4 changes: 1 addition & 3 deletions Marlin/src/pins/esp32/pins_FYSETC_E4.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@

#include "env_validate.h"

#if EXTRUDERS > 1 || E_STEPPERS > 1
#error "FYSETC E4 only supports 1 E stepper."
#elif HAS_MULTI_HOTEND
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "FYSETC E4 only supports 1 hotend / E stepper."
#endif

Expand Down
4 changes: 1 addition & 3 deletions Marlin/src/pins/esp32/pins_MRR_ESPA.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@

#include "env_validate.h"

#if EXTRUDERS > 1 || E_STEPPERS > 1
#error "MRR ESPA only supports 1 E stepper."
#elif HAS_MULTI_HOTEND
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "MRR ESPA only supports 1 hotend / E stepper."
#endif

Expand Down
4 changes: 4 additions & 0 deletions Marlin/src/pins/esp32/pins_PANDA_M4.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

#define BOARD_INFO_NAME "Panda_M4"

#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "PANDA M4 only supports 1 hotend / E stepper."
#endif

#include "pins_PANDA_common.h"

//
Expand Down
6 changes: 6 additions & 0 deletions Marlin/src/pins/esp32/pins_PANDA_ZHU.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@

#define BOARD_INFO_NAME "Panda_ZHU"

#if E_STEPPERS > 5
#error "PANDA ZHU supports up to 5 E steppers."
#if HAS_MULTI_HOTEND
#error "PANDA ZHU only supports 1 hotend."
#endif

#include "pins_PANDA_common.h"

//
Expand Down
4 changes: 4 additions & 0 deletions Marlin/src/pins/mega/pins_GT2560_V3.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
#define ALLOW_MEGA1280
#include "env_validate.h"

#if HOTENDS > 3 || E_STEPPERS > 3
#error "GT2560 supports up to 3 hotends / E steppers."
#endif

#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "GT2560 3.x"
#endif
Expand Down
6 changes: 6 additions & 0 deletions Marlin/src/pins/mega/pins_PICA.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@

#include "env_validate.h"

#if E_STEPPERS > 2
#error "PICA supports up to 2 E steppers."
#if HOTENDS > 4
#error "PICA supports up to 4 hotends."
#endif

#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "PICA"
#endif
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/stm32f4/pins_ARTILLERY_RUBY.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "env_validate.h"

#if HOTENDS > 1 || E_STEPPERS > 1
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "Artillery Ruby only supports 1 hotend / E stepper."
#endif

Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/stm32f4/pins_BTT_SKR_MINI_E3_V3_0_1.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "env_validate.h"

#if HOTENDS > 1 || E_STEPPERS > 1
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "BTT SKR Mini E3 V3.0.1 supports up to 1 hotend / E stepper."
#endif

Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/stm32f4/pins_TH3D_EZBOARD_V2.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define ALLOW_STM32DUINO
#include "env_validate.h"

#if HOTENDS > 1 || E_STEPPERS > 1
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "TH3D EZBoard only supports 1 hotend / E stepper."
#endif

Expand Down

0 comments on commit 37a09eb

Please sign in to comment.