Fix MIN/MAX function collision with macros

This commit is contained in:
Scott Lahteine committed 2019-07-05 18:14:02 -05:00
1 parent b6546ea33a
commit 750a16ad38
63 files changed
+167 -167

No files matched your search

+1 -1
View File
@@ -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) {