Skip to content

Commit

Permalink
fix SanityCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Msq001 committed Apr 14, 2021
1 parent 1261428 commit 2e7c870
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
4 changes: 0 additions & 4 deletions Marlin/src/inc/Conditionals_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,3 @@
#if EITHER(MEATPACK_ON_SERIAL_PORT_1, MEATPACK_ON_SERIAL_PORT_2)
#define HAS_MEATPACK 1
#endif

#if DISABLED(DISABLE_DRIVER_SAFE_POWER_PROTECT) && PIN_EXISTS(SAFE_POWER)
#define DRIVER_SAFE_POWER_PROTECT 1
#endif
4 changes: 4 additions & 0 deletions Marlin/src/inc/Conditionals_post.h
Original file line number Diff line number Diff line change
Expand Up @@ -3026,3 +3026,7 @@
#if BUTTONS_EXIST(EN1, EN2, ENC)
#define HAS_ROTARY_ENCODER 1
#endif

#if DISABLED(DISABLE_DRIVER_SAFE_POWER_PROTECT) && PIN_EXISTS(SAFE_POWER)
#define DRIVER_SAFE_POWER_PROTECT 1
#endif
7 changes: 0 additions & 7 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -1628,13 +1628,6 @@ static_assert(hbm[Z_AXIS] >= 0, "HOMING_BUMP_MM.Z must be greater than or equal
#error "POWER_MONITOR_CURRENT_PIN and POWER_MONITOR_VOLTAGE_PIN must be different."
#endif

/**
* Stepper Driver Anti-Reverse Protection
*/
#if ENABLED(DRIVER_SAFE_POWER_PROTECT) && !PIN_EXISTS(SAFE_POWER)
#error "DRIVER_SAFE_POWER_PROTECT requires a valid SAFE_POWER_PIN."
#endif

/**
* Volumetric Extruder Limit
*/
Expand Down

0 comments on commit 2e7c870

Please sign in to comment.