Indents indents indents

This commit is contained in:
HarukiToreda 2025-05-29 02:31:09 -04:00
parent 69a08cb69d
commit 303006e1df

View File

@ -1945,14 +1945,14 @@ static void drawNodeInfo(OLEDDisplay *display, OLEDDisplayUiState *state, int16_
} }
// === 2. Signal and Hops (combined on one line, if available) === // === 2. Signal and Hops (combined on one line, if available) ===
// If both are present: "Signal: 97% [2hops]" // If both are present: "Sig: 97% [2hops]"
// If only one: show only that one // If only one: show only that one
char signalHopsStr[32] = ""; char signalHopsStr[32] = "";
bool haveSignal = false; bool haveSignal = false;
int percentSignal = clamp((int)((node->snr + 10) * 5), 0, 100); int percentSignal = clamp((int)((node->snr + 10) * 5), 0, 100);
// Use shorter label if screen is narrow (<= 128 px) // Always use "Sig" for the label
const char *signalLabel = (display->getWidth() > 128) ? "Signal" : "Sig"; const char *signalLabel = " Sig";
// --- Build the Signal/Hops line --- // --- Build the Signal/Hops line ---
// If SNR looks reasonable, show signal // If SNR looks reasonable, show signal