Merge pull request #26 from blind/adjustbugfix

Flush screen buffer to display in adjust menu (issue #24)
This commit is contained in:
Johan Berglund 2019-07-17 12:28:05 +02:00 committed by GitHub
commit e251b86100
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -346,9 +346,9 @@ int updateAdjustMenu(uint32_t timeNow, KeyState &input, bool firstRun, bool draw
currentMenu->saveFunc(*currentMenu);
} else if( adjustCurrent == 1) {
handleInput(currentMenu, timeNow, buttons, &pos1, 20, 0);
redraw |= handleInput(currentMenu, timeNow, buttons, &pos1, 20, 0);
} else {
handleInput(currentMenu, timeNow, buttons, &pos2, 50, 1);
redraw |= handleInput(currentMenu, timeNow, buttons, &pos2, 50, 1);
}
// Keep adjustCurrent in range