|
@ -3007,8 +3007,8 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2) |
|
|
#if HAS_CUTTER |
|
|
#if HAS_CUTTER |
|
|
#ifndef CUTTER_POWER_UNIT |
|
|
#ifndef CUTTER_POWER_UNIT |
|
|
#error "CUTTER_POWER_UNIT is required with a spindle or laser. Please update your Configuration_adv.h." |
|
|
#error "CUTTER_POWER_UNIT is required with a spindle or laser. Please update your Configuration_adv.h." |
|
|
#elif !CUTTER_UNIT_IS(PWM255) && !CUTTER_UNIT_IS(PERCENT) && !CUTTER_UNIT_IS(RPM) |
|
|
#elif !CUTTER_UNIT_IS(PWM255) && !CUTTER_UNIT_IS(PERCENT) && !CUTTER_UNIT_IS(RPM) && !CUTTER_UNIT_IS(SERVO) |
|
|
#error "CUTTER_POWER_UNIT must be PWM255, PERCENT, or RPM. Please update your Configuration_adv.h." |
|
|
#error "CUTTER_POWER_UNIT must be PWM255, PERCENT, RPM, or SERVO. Please update your Configuration_adv.h." |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(LASER_POWER_INLINE) |
|
|
#if ENABLED(LASER_POWER_INLINE) |
|
@ -3047,8 +3047,8 @@ static_assert( _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2) |
|
|
#define _PIN_CONFLICT(P) (PIN_EXISTS(P) && P##_PIN == SPINDLE_LASER_PWM_PIN) |
|
|
#define _PIN_CONFLICT(P) (PIN_EXISTS(P) && P##_PIN == SPINDLE_LASER_PWM_PIN) |
|
|
#if BOTH(SPINDLE_FEATURE, LASER_FEATURE) |
|
|
#if BOTH(SPINDLE_FEATURE, LASER_FEATURE) |
|
|
#error "Enable only one of SPINDLE_FEATURE or LASER_FEATURE." |
|
|
#error "Enable only one of SPINDLE_FEATURE or LASER_FEATURE." |
|
|
#elif !PIN_EXISTS(SPINDLE_LASER_ENA) |
|
|
#elif !PIN_EXISTS(SPINDLE_LASER_ENA) && DISABLED(SPINDLE_SERVO) |
|
|
#error "(SPINDLE|LASER)_FEATURE requires SPINDLE_LASER_ENA_PIN." |
|
|
#error "(SPINDLE|LASER)_FEATURE requires SPINDLE_LASER_ENA_PIN or SPINDLE_SERVO to control the power." |
|
|
#elif ENABLED(SPINDLE_CHANGE_DIR) && !PIN_EXISTS(SPINDLE_DIR) |
|
|
#elif ENABLED(SPINDLE_CHANGE_DIR) && !PIN_EXISTS(SPINDLE_DIR) |
|
|
#error "SPINDLE_DIR_PIN is required for SPINDLE_CHANGE_DIR." |
|
|
#error "SPINDLE_DIR_PIN is required for SPINDLE_CHANGE_DIR." |
|
|
#elif ENABLED(SPINDLE_LASER_PWM) |
|
|
#elif ENABLED(SPINDLE_LASER_PWM) |
|
|