Check more carefully for own node

This commit is contained in:
Jonathan Bennett 2025-06-25 19:43:50 -05:00
parent e1b1e35a27
commit 3dd77ace85

View File

@ -418,7 +418,7 @@ void drawNodeListScreen(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t
int totalColumns = 2; int totalColumns = 2;
int startIndex = scrollIndex * visibleNodeRows * totalColumns; int startIndex = scrollIndex * visibleNodeRows * totalColumns;
if (scrollIndex == 0) { if (nodeDB->getMeshNodeByIndex(startIndex)->num == nodeDB->getNodeNum()) {
startIndex++; // skip own node startIndex++; // skip own node
} }
int endIndex = std::min(startIndex + visibleNodeRows * totalColumns, totalEntries); int endIndex = std::min(startIndex + visibleNodeRows * totalColumns, totalEntries);