Browse Source

Suppress thisItemNr warning (#17049)

ellensp 4 years ago
parent
commit
624ab24a5c
No account linked to committer's email address
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/src/lcd/menu/menu.h

+ 4
- 4
Marlin/src/lcd/menu/menu.h View File

@@ -322,10 +322,10 @@ class MenuItem_bool : public MenuEditItemBase {
322 322
  *   _menuLineNr is the menu item to draw and process
323 323
  *   _thisItemNr is the index of each MENU_ITEM or STATIC_ITEM
324 324
  */
325
-#define SCREEN_OR_MENU_LOOP(IS_MENU)                \
326
-  scroll_screen(IS_MENU ? 1 : LCD_HEIGHT, IS_MENU); \
327
-  int8_t _menuLineNr = encoderTopLine, _thisItemNr; \
328
-  bool _skipStatic = IS_MENU; UNUSED(_thisItemNr);  \
325
+#define SCREEN_OR_MENU_LOOP(IS_MENU)                    \
326
+  scroll_screen(IS_MENU ? 1 : LCD_HEIGHT, IS_MENU);     \
327
+  int8_t _menuLineNr = encoderTopLine, _thisItemNr = 0; \
328
+  bool _skipStatic = IS_MENU; UNUSED(_thisItemNr);      \
329 329
   for (int8_t _lcdLineNr = 0; _lcdLineNr < LCD_HEIGHT; _lcdLineNr++, _menuLineNr++) { \
330 330
     _thisItemNr = 0
331 331
 

Loading…
Cancel
Save