show a max of four node screens in the scrolling list

1.2-legacy
Kevin Hester 2021-08-04 09:10:34 -07:00
rodzic 057b04a88a
commit 6d2cd73599
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -946,7 +946,9 @@ void Screen::setFrames()
normalFrames[numframes++] = drawTextMessageFrame;
// then all the nodes
for (size_t i = 0; i < numnodes; i++)
// We only show a few nodes in our scrolling list - because meshes with many nodes would have too many screens
size_t numToShow = min(numnodes, 4U);
for (size_t i = 0; i < numToShow; i++)
normalFrames[numframes++] = drawNodeInfo;
// then the debug info