🩹 Fix Switching Toolhead compile (#24814)
This commit is contained in:
parent
8b37b60e58
commit
d6ff8f0062
@ -440,6 +440,11 @@ void fast_line_to_current(const AxisEnum fr_axis) { _line_to_current(fr_axis, 0.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endif // TOOL_SENSOR
|
||||||
|
|
||||||
|
#if ENABLED(SWITCHING_TOOLHEAD)
|
||||||
|
|
||||||
inline void switching_toolhead_lock(const bool locked) {
|
inline void switching_toolhead_lock(const bool locked) {
|
||||||
#ifdef SWITCHING_TOOLHEAD_SERVO_ANGLES
|
#ifdef SWITCHING_TOOLHEAD_SERVO_ANGLES
|
||||||
const uint16_t swt_angles[2] = SWITCHING_TOOLHEAD_SERVO_ANGLES;
|
const uint16_t swt_angles[2] = SWITCHING_TOOLHEAD_SERVO_ANGLES;
|
||||||
@ -452,8 +457,6 @@ void fast_line_to_current(const AxisEnum fr_axis) { _line_to_current(fr_axis, 0.
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <bitset>
|
|
||||||
|
|
||||||
void swt_init() {
|
void swt_init() {
|
||||||
switching_toolhead_lock(true);
|
switching_toolhead_lock(true);
|
||||||
|
|
||||||
@ -494,10 +497,6 @@ void fast_line_to_current(const AxisEnum fr_axis) { _line_to_current(fr_axis, 0.
|
|||||||
#endif // TOOL_SENSOR
|
#endif // TOOL_SENSOR
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // TOOL_SENSOR
|
|
||||||
|
|
||||||
#if ENABLED(SWITCHING_TOOLHEAD)
|
|
||||||
|
|
||||||
inline void switching_toolhead_tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
|
inline void switching_toolhead_tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
|
||||||
if (no_move) return;
|
if (no_move) return;
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@
|
|||||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||||
|
|
||||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||||
#error "CAUTION! FYSETC_MINI_12864_2_1 and clones require wiring modifications. See 'pins_CREALITY_V4.h' for details. Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning"
|
#error "CAUTION! FYSETC_MINI_12864_2_1 and clones require wiring modifications. See 'pins_CREALITY_V4.h' for details. Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SD_CONNECTION_IS(LCD)
|
#if SD_CONNECTION_IS(LCD)
|
||||||
|
@ -311,7 +311,7 @@
|
|||||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||||
|
|
||||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||||
#error "CAUTION! FYSETC_MINI_12864_2_1 and clones require wiring modifications. See 'pins_BTT_SKR_MINI_E3_V3_0.h' for details. Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning"
|
#error "CAUTION! FYSETC_MINI_12864_2_1 and clones require wiring modifications. See 'pins_BTT_SKR_MINI_E3_V3_0.h' for details. Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user