From 6d2cd73599c6984e6bad6697000bbfafde43c521 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Wed, 4 Aug 2021 09:10:34 -0700 Subject: [PATCH] show a max of four node screens in the scrolling list --- src/graphics/Screen.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index 476880942..f2fc1e1e8 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -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