Remove LcdCommands::FarmModeConfirm
This commit is contained in:
parent
e11ef11a64
commit
29882b625b
|
|
@ -620,10 +620,7 @@ void get_command()
|
||||||
card.checkautostart(true);
|
card.checkautostart(true);
|
||||||
|
|
||||||
if (farm_mode)
|
if (farm_mode)
|
||||||
{
|
prusa_statistics(6);
|
||||||
prusa_statistics(6);
|
|
||||||
lcd_commands_type = LcdCommands::FarmModeConfirm;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -937,49 +937,9 @@ void lcd_commands()
|
||||||
lcd_wizard(WizState::RepeatLay1Cal);
|
lcd_wizard(WizState::RepeatLay1Cal);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PRUSA_FARM
|
|
||||||
if (lcd_commands_type == LcdCommands::FarmModeConfirm) /// farm mode confirm
|
|
||||||
{
|
|
||||||
|
|
||||||
if (lcd_commands_step == 0) { lcd_commands_step = 6; }
|
|
||||||
|
|
||||||
if (lcd_commands_step == 1 && !blocks_queued())
|
|
||||||
{
|
|
||||||
lcd_commands_step = 0;
|
|
||||||
lcd_commands_type = LcdCommands::Idle;
|
|
||||||
}
|
|
||||||
if (lcd_commands_step == 2 && !blocks_queued())
|
|
||||||
{
|
|
||||||
lcd_commands_step = 1;
|
|
||||||
}
|
|
||||||
if (lcd_commands_step == 3 && !blocks_queued())
|
|
||||||
{
|
|
||||||
lcd_commands_step = 2;
|
|
||||||
}
|
|
||||||
if (lcd_commands_step == 4 && !blocks_queued())
|
|
||||||
{
|
|
||||||
enquecommand_P(PSTR("G90"));
|
|
||||||
enquecommand_P(PSTR("G1 X" STRINGIFY(X_CANCEL_POS) " Y" STRINGIFY(Y_CANCEL_POS) " E0 F7000"));
|
|
||||||
lcd_commands_step = 3;
|
|
||||||
}
|
|
||||||
if (lcd_commands_step == 5 && !blocks_queued())
|
|
||||||
{
|
|
||||||
lcd_commands_step = 4;
|
|
||||||
}
|
|
||||||
if (lcd_commands_step == 6 && !blocks_queued())
|
|
||||||
{
|
|
||||||
enquecommand_P(PSTR("G91"));
|
|
||||||
enquecommand_P(PSTR("G1 Z15 F1500"));
|
|
||||||
st_synchronize();
|
|
||||||
lcd_commands_step = 5;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
#endif //PRUSA_FARM
|
|
||||||
|
|
||||||
if (lcd_commands_type == LcdCommands::PidExtruder) {
|
if (lcd_commands_type == LcdCommands::PidExtruder) {
|
||||||
char cmd1[30];
|
char cmd1[30];
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,6 @@ enum class LcdCommands : uint_least8_t
|
||||||
Idle,
|
Idle,
|
||||||
LoadFilament,
|
LoadFilament,
|
||||||
StopPrint,
|
StopPrint,
|
||||||
FarmModeConfirm,
|
|
||||||
LongPause,
|
LongPause,
|
||||||
PidExtruder,
|
PidExtruder,
|
||||||
Layer1Cal,
|
Layer1Cal,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue