PFW-1503 only allow babystepping on the first couple of layers
Change in memory: Flash: +28 bytes SRAM: 0 bytes
This commit is contained in:
parent
09d918ce5d
commit
59314a41c1
|
|
@ -366,7 +366,7 @@ extern bool printer_active();
|
||||||
bool check_fsensor();
|
bool check_fsensor();
|
||||||
|
|
||||||
//! Condition where Babystepping is allowed:
|
//! Condition where Babystepping is allowed:
|
||||||
//! 1) Axis are trusted: Z-axis position must be known
|
//! 1) Z-axis position is less than 2.0mm (only allowed during the first couple of layers)
|
||||||
//! 2) Not allowed during Homing (printer busy)
|
//! 2) Not allowed during Homing (printer busy)
|
||||||
//! 3) Not allowed during Mesh Bed Leveling (printer busy)
|
//! 3) Not allowed during Mesh Bed Leveling (printer busy)
|
||||||
//! 4) Allowed if there are queued blocks OR there is a print job running
|
//! 4) Allowed if there are queued blocks OR there is a print job running
|
||||||
|
|
|
||||||
|
|
@ -546,7 +546,7 @@ bool check_fsensor() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool __attribute__((noinline)) babystep_allowed() {
|
bool __attribute__((noinline)) babystep_allowed() {
|
||||||
return (axis_known_position[Z_AXIS]
|
return ( (current_position[Z_AXIS] < Z_HEIGHT_HIDE_LIVE_ADJUST_MENU)
|
||||||
&& !homing_flag && !mesh_bed_leveling_flag
|
&& !homing_flag && !mesh_bed_leveling_flag
|
||||||
&& ( blocks_queued() || lcd_commands_type == LcdCommands::Layer1Cal || ( !isPrintPaused && (IS_SD_PRINTING || usb_timer.running()) ))
|
&& ( blocks_queued() || lcd_commands_type == LcdCommands::Layer1Cal || ( !isPrintPaused && (IS_SD_PRINTING || usb_timer.running()) ))
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue