瀏覽代碼

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

Marek Bel 5 年之前
父節點
當前提交
51df6cdfdc
共有 2 個文件被更改,包括 9 次插入14 次删除
  1. 0 5
      Firmware/ultralcd.cpp
  2. 9 9
      Firmware/ultralcd.h

+ 0 - 5
Firmware/ultralcd.cpp

@@ -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
 	{
 

+ 9 - 9
Firmware/ultralcd.h

@@ -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;