瀏覽代碼

Fix warnings for REPRAPWORLD_KEYPAD

Steven Gotthardt 7 年之前
父節點
當前提交
645b586041
共有 1 個文件被更改,包括 5 次插入6 次删除
  1. 5
    6
      Marlin/ultralcd.h

+ 5
- 6
Marlin/ultralcd.h 查看文件

@@ -129,20 +129,19 @@
129 129
 
130 130
     #define REPRAPWORLD_KEYPAD_MOVE_Z_DOWN  (buttons_reprapworld_keypad & EN_REPRAPWORLD_KEYPAD_F3)
131 131
     #define REPRAPWORLD_KEYPAD_MOVE_Z_UP    (buttons_reprapworld_keypad & EN_REPRAPWORLD_KEYPAD_F2)
132
-    #define REPRAPWORLD_KEYPAD_MOVE_MENU    (buttons_reprapworld_keypad & EN_REPRAPWORLD_KEYPAD_F1)
133 132
     #define REPRAPWORLD_KEYPAD_MOVE_Y_DOWN  (buttons_reprapworld_keypad & EN_REPRAPWORLD_KEYPAD_DOWN)
134 133
     #define REPRAPWORLD_KEYPAD_MOVE_X_RIGHT (buttons_reprapworld_keypad & EN_REPRAPWORLD_KEYPAD_RIGHT)
135
-    #define REPRAPWORLD_KEYPAD_MOVE_HOME    (buttons_reprapworld_keypad & EN_REPRAPWORLD_KEYPAD_MIDDLE)
136 134
     #define REPRAPWORLD_KEYPAD_MOVE_Y_UP    (buttons_reprapworld_keypad & EN_REPRAPWORLD_KEYPAD_UP)
137 135
     #define REPRAPWORLD_KEYPAD_MOVE_X_LEFT  (buttons_reprapworld_keypad & EN_REPRAPWORLD_KEYPAD_LEFT)
138 136
 
139 137
     #if ENABLED(ADC_KEYPAD)
140
-      #define REPRAPWORLD_KEYPAD_MOVE_HOME  (buttons_reprapworld_keypad & EN_REPRAPWORLD_KEYPAD_F1)
141
-      #define KEYPAD_EN_C                   EN_REPRAPWORLD_KEYPAD_MIDDLE
138
+      #define KEYPAD_HOME EN_REPRAPWORLD_KEYPAD_F1
139
+      #define KEYPAD_EN_C EN_REPRAPWORLD_KEYPAD_MIDDLE
142 140
     #else
143
-      #define REPRAPWORLD_KEYPAD_MOVE_HOME  (buttons_reprapworld_keypad & EN_REPRAPWORLD_KEYPAD_MIDDLE)
144
-      #define KEYPAD_EN_C                   EN_REPRAPWORLD_KEYPAD_F1
141
+      #define KEYPAD_HOME EN_REPRAPWORLD_KEYPAD_MIDDLE
142
+      #define KEYPAD_EN_C EN_REPRAPWORLD_KEYPAD_F1
145 143
     #endif
144
+    #define REPRAPWORLD_KEYPAD_MOVE_HOME    (buttons_reprapworld_keypad & KEYPAD_HOME)
146 145
     #define REPRAPWORLD_KEYPAD_MOVE_MENU    (buttons_reprapworld_keypad & KEYPAD_EN_C)
147 146
 
148 147
     #if BUTTON_EXISTS(ENC)

Loading…
取消
儲存