PFW-1503 Add additional check

Add lcd_commands_type == LcdCommands::Layer1Cal
just in case blocks_queued() is 0 for one instant between
lcd_command steps

Change in memory:
Flash: +8 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-03-04 16:35:40 +00:00
parent bc2366cd8d
commit bb614f669d
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ bool check_fsensor() {
bool __attribute__((noinline)) BABYSTEP_ALLOWED() {
return (axis_known_position[Z_AXIS]
&& !homing_flag && !mesh_bed_leveling_flag
&& ( blocks_queued() || ( !isPrintPaused && (IS_SD_PRINTING || usb_timer.running()) ))
&& ( blocks_queued() || lcd_commands_type == LcdCommands::Layer1Cal || ( !isPrintPaused && (IS_SD_PRINTING || usb_timer.running()) ))
);
}