mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-25 07:33:56 -06:00
Fix MIN/MAX function collision with macros
This commit is contained in:
parent
b6546ea33a
commit
750a16ad38
63 changed files with 167 additions and 167 deletions
|
@ -326,7 +326,7 @@ void scroll_screen(const uint8_t limit, const bool is_menu) {
|
|||
screen_changed = false;
|
||||
}
|
||||
if (screen_items > 0 && encoderLine >= screen_items - limit) {
|
||||
encoderLine = MAX(0, screen_items - limit);
|
||||
encoderLine = _MAX(0, screen_items - limit);
|
||||
ui.encoderPosition = encoderLine * (ENCODER_STEPS_PER_MENU_ITEM);
|
||||
}
|
||||
if (is_menu) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue