Only compare XYZ to check motion
This commit is contained in:
parent
f53e0702fc
commit
204199e1ce
@ -149,10 +149,7 @@ void set_bed_leveling_enabled(const bool enable/*=true*/) {
|
|||||||
planner.set_z_fade_height(zfh);
|
planner.set_z_fade_height(zfh);
|
||||||
|
|
||||||
if (level_active) {
|
if (level_active) {
|
||||||
const float oldpos[XYZE] = {
|
const float oldpos[] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] };
|
||||||
current_position[X_AXIS], current_position[Y_AXIS],
|
|
||||||
current_position[Z_AXIS], current_position[E_AXIS]
|
|
||||||
};
|
|
||||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||||
set_bed_leveling_enabled(true); // turn back on after changing fade height
|
set_bed_leveling_enabled(true); // turn back on after changing fade height
|
||||||
#else
|
#else
|
||||||
|
@ -45,10 +45,7 @@
|
|||||||
*/
|
*/
|
||||||
void GcodeSuite::M420() {
|
void GcodeSuite::M420() {
|
||||||
|
|
||||||
const float oldpos[XYZE] = {
|
const float oldpos[] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] };
|
||||||
current_position[X_AXIS], current_position[Y_AXIS],
|
|
||||||
current_position[Z_AXIS], current_position[E_AXIS]
|
|
||||||
};
|
|
||||||
|
|
||||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||||
|
|
||||||
|
@ -220,10 +220,7 @@ MarlinSettings settings;
|
|||||||
* Post-process after Retrieve or Reset
|
* Post-process after Retrieve or Reset
|
||||||
*/
|
*/
|
||||||
void MarlinSettings::postprocess() {
|
void MarlinSettings::postprocess() {
|
||||||
const float oldpos[XYZE] = {
|
const float oldpos[] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] };
|
||||||
current_position[X_AXIS], current_position[Y_AXIS],
|
|
||||||
current_position[Z_AXIS], current_position[E_AXIS]
|
|
||||||
};
|
|
||||||
|
|
||||||
// steps per s2 needs to be updated to agree with units per s2
|
// steps per s2 needs to be updated to agree with units per s2
|
||||||
planner.reset_acceleration_rates();
|
planner.reset_acceleration_rates();
|
||||||
|
Loading…
Reference in New Issue
Block a user