Finish G12, update Nozzle::clean (#14642)
This commit is contained in:
committed by
Scott Lahteine
parent
57ed063ba1
commit
b8cc61262f
@ -100,6 +100,10 @@ void set_bed_leveling_enabled(const bool enable/*=true*/) {
|
||||
}
|
||||
}
|
||||
|
||||
TemporaryBedLevelingState::TemporaryBedLevelingState(const bool enable) : saved(planner.leveling_active) {
|
||||
set_bed_leveling_enabled(enable);
|
||||
}
|
||||
|
||||
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
|
||||
|
||||
void set_z_fade_height(const float zfh, const bool do_report/*=true*/) {
|
||||
|
@ -46,6 +46,18 @@ void reset_bed_level();
|
||||
void _manual_goto_xy(const float &x, const float &y);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* A class to save and change the bed leveling state,
|
||||
* then restore it when it goes out of scope.
|
||||
*/
|
||||
class TemporaryBedLevelingState {
|
||||
bool saved;
|
||||
public:
|
||||
TemporaryBedLevelingState(const bool enable);
|
||||
~TemporaryBedLevelingState() { set_bed_leveling_enabled(saved); }
|
||||
};
|
||||
#define TEMPORARY_BED_LEVELING_STATE(enable) TemporaryBedLevelingState tbls(enable)
|
||||
|
||||
#if HAS_MESH
|
||||
|
||||
typedef float (&bed_mesh_t)[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y];
|
||||
|
@ -436,7 +436,7 @@ bool pause_print(const float &retract, const point_t &park_point, const float &u
|
||||
|
||||
// Park the nozzle by moving up by z_lift and then moving to (x_pos, y_pos)
|
||||
if (!axis_unhomed_error())
|
||||
Nozzle::park(2, park_point);
|
||||
nozzle.park(2, park_point);
|
||||
|
||||
#if ENABLED(DUAL_X_CARRIAGE)
|
||||
const int8_t saved_ext = active_extruder;
|
||||
|
@ -573,7 +573,7 @@ void MMU2::manage_response(const bool move_axes, const bool turn_off_nozzle) {
|
||||
COPY(resume_position, current_position);
|
||||
|
||||
if (move_axes && all_axes_homed())
|
||||
Nozzle::park(2, park_point /*= NOZZLE_PARK_POINT*/);
|
||||
nozzle.park(2, park_point /*= NOZZLE_PARK_POINT*/);
|
||||
|
||||
if (turn_off_nozzle) thermalManager.setTargetHotend(0, active_extruder);
|
||||
|
||||
|
Reference in New Issue
Block a user