Add HAS_HOTEND, etc.
This commit is contained in:
@@ -126,7 +126,7 @@ inline void park_above_object(measurements_t &m, const float uncertainty) {
|
||||
calibration_move();
|
||||
}
|
||||
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
inline void set_nozzle(measurements_t &m, const uint8_t extruder) {
|
||||
if (extruder != active_extruder) {
|
||||
park_above_object(m, CALIBRATION_MEASUREMENT_UNKNOWN);
|
||||
@@ -505,7 +505,7 @@ inline void calibrate_toolhead(measurements_t &m, const float uncertainty, const
|
||||
TEMPORARY_BACKLASH_CORRECTION(all_on);
|
||||
TEMPORARY_BACKLASH_SMOOTHING(0.0f);
|
||||
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
set_nozzle(m, extruder);
|
||||
#else
|
||||
UNUSED(extruder);
|
||||
@@ -548,7 +548,7 @@ inline void calibrate_all_toolheads(measurements_t &m, const float uncertainty)
|
||||
normalize_hotend_offsets();
|
||||
#endif
|
||||
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
set_nozzle(m, 0);
|
||||
#endif
|
||||
}
|
||||
@@ -582,7 +582,7 @@ inline void calibrate_all() {
|
||||
#endif
|
||||
|
||||
// Cycle the toolheads so the servos settle into their "natural" positions
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
HOTEND_LOOP() set_nozzle(m, e);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user