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 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. // To be used in lcd_commands_type.
enum class LcdCommands : uint8_t { enum class LcdCommands : uint8_t
Idle = 0, {
LoadFilament = 1, Idle,
StopPrint = 2, LoadFilament,
Unknown3 = 3, StopPrint,
FarmModeConfirm = 4, FarmModeConfirm,
LongPause = 5, LongPause,
PidExtruder = 7, PidExtruder,
Layer1Cal = 8, Layer1Cal,
}; };
extern LcdCommands lcd_commands_type; extern LcdCommands lcd_commands_type;