fix(colorlcd): Not all detected sensors displayed at detection time (#3328)

This commit is contained in:
Michael
2023-03-23 11:39:10 +10:00
committed by GitHub
parent a7688e2b04
commit 6616f5b857
+4 -1
View File
@@ -524,8 +524,11 @@ ModelTelemetryPage::ModelTelemetryPage() :
void ModelTelemetryPage::checkEvents()
{
if (lastKnownIndex >= 0 && lastKnownIndex != availableTelemetryIndex()) {
int _lastKnownIndex = availableTelemetryIndex();
if (lastKnownIndex >= 0 && lastKnownIndex != _lastKnownIndex) {
rebuild(window);
lastKnownIndex = _lastKnownIndex;
}
PageTab::checkEvents();