Fix indentation in the MK3 sensor information screen

This commit is contained in:
Yuri D'Elia 2022-02-14 17:47:47 +01:00
parent e1ebc82654
commit d89f4e9952

View file

@ -3843,26 +3843,18 @@ static void lcd_show_sensors_state()
// Shutter register is an index of LASER shutter time. It is automatically controlled by the chip's internal
// auto-exposure algorithm. When the chip is tracking on a good reflection surface, the Shutter is small.
// When the chip is tracking on a poor reflection surface, the Shutter is large. Value ranges from 0 to 46.
if (mmu_enabled == false)
{
//if (!fsensor_enabled)
// lcd_puts_P(_N("Filament sensor\n" "is disabled."));
//else
//{
if (!moves_planned() && !IS_SD_PRINTING && !is_usb_printing && (lcd_commands_type != LcdCommands::Layer1Cal))
pat9125_update();
lcd_set_cursor(0, 2);
lcd_printf_P(_N(
"Xd: %3d "
"Yd: %3d\n" ////c=4
"Int: %3d " ////c=4
"Shut: %3d" ////c=4
),
pat9125_x, pat9125_y,
pat9125_b, pat9125_s
);
//}
}
if (mmu_enabled == false)
{
// pat9125_update is already called while printing: only update manually when idling
if (!moves_planned() && !IS_SD_PRINTING && !is_usb_printing && (lcd_commands_type != LcdCommands::Layer1Cal))
pat9125_update();
lcd_set_cursor(0, 2);
lcd_printf_P(_N("Xd: %3d Yd: %3d\n"
"Int: %3d Shut: %3d"),
pat9125_x, pat9125_y,
pat9125_b, pat9125_s);
}
#endif //PAT9125
}