Remove LcdCommands::Unknown3. Remove LcdCommands mapping to numbers, as it is not needed.

This commit is contained in:
Marek Bel 2019-06-12 18:22:57 +02:00
parent cbb92860d0
commit 51df6cdfdc
2 changed files with 9 additions and 14 deletions

View file

@ -1543,11 +1543,6 @@ void lcd_commands()
}
}
if (lcd_commands_type == LcdCommands::Unknown3)
{
lcd_commands_type = LcdCommands::Idle;
}
if (lcd_commands_type == LcdCommands::FarmModeConfirm) /// farm mode confirm
{

View file

@ -89,15 +89,15 @@ extern void lcd_diag_show_end_stops();
// To be used in lcd_commands_type.
enum class LcdCommands : uint8_t {
Idle = 0,
LoadFilament = 1,
StopPrint = 2,
Unknown3 = 3,
FarmModeConfirm = 4,
LongPause = 5,
PidExtruder = 7,
Layer1Cal = 8,
enum class LcdCommands : uint8_t
{
Idle,
LoadFilament,
StopPrint,
FarmModeConfirm,
LongPause,
PidExtruder,
Layer1Cal,
};
extern LcdCommands lcd_commands_type;