mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
Fix pageMaxRow use before update (#8222)
Fix pageMaxRow use before update
This commit is contained in:
commit
a4ac70bd95
1 changed files with 2 additions and 2 deletions
|
@ -250,13 +250,13 @@ static void cmsPageSelect(displayPort_t *instance, int8_t newpage)
|
||||||
{
|
{
|
||||||
currentCtx.page = (newpage + pageCount) % pageCount;
|
currentCtx.page = (newpage + pageCount) % pageCount;
|
||||||
pageTop = ¤tCtx.menu->entries[currentCtx.page * maxMenuItems];
|
pageTop = ¤tCtx.menu->entries[currentCtx.page * maxMenuItems];
|
||||||
|
cmsUpdateMaxRow(instance);
|
||||||
|
|
||||||
const OSD_Entry *p;
|
const OSD_Entry *p;
|
||||||
int i;
|
int i;
|
||||||
for (p = pageTop, i = 0; (p <= pageTop + pageMaxRow); p++, i++) {
|
for (p = pageTop, i = 0; (p <= pageTop + pageMaxRow); p++, i++) {
|
||||||
runtimeEntryFlags[i] = p->flags;
|
runtimeEntryFlags[i] = p->flags;
|
||||||
}
|
}
|
||||||
cmsUpdateMaxRow(instance);
|
|
||||||
displayClearScreen(instance);
|
displayClearScreen(instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue