Suppress thisItemNr warning (#17049)
This commit is contained in:
parent
66334820ca
commit
624ab24a5c
1 changed files with 4 additions and 4 deletions
|
@ -324,7 +324,7 @@ class MenuItem_bool : public MenuEditItemBase {
|
||||||
*/
|
*/
|
||||||
#define SCREEN_OR_MENU_LOOP(IS_MENU) \
|
#define SCREEN_OR_MENU_LOOP(IS_MENU) \
|
||||||
scroll_screen(IS_MENU ? 1 : LCD_HEIGHT, IS_MENU); \
|
scroll_screen(IS_MENU ? 1 : LCD_HEIGHT, IS_MENU); \
|
||||||
int8_t _menuLineNr = encoderTopLine, _thisItemNr; \
|
int8_t _menuLineNr = encoderTopLine, _thisItemNr = 0; \
|
||||||
bool _skipStatic = IS_MENU; UNUSED(_thisItemNr); \
|
bool _skipStatic = IS_MENU; UNUSED(_thisItemNr); \
|
||||||
for (int8_t _lcdLineNr = 0; _lcdLineNr < LCD_HEIGHT; _lcdLineNr++, _menuLineNr++) { \
|
for (int8_t _lcdLineNr = 0; _lcdLineNr < LCD_HEIGHT; _lcdLineNr++, _menuLineNr++) { \
|
||||||
_thisItemNr = 0
|
_thisItemNr = 0
|
||||||
|
|
Reference in a new issue