mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-10 15:12:06 +00:00
Indents indents indents
This commit is contained in:
parent
69a08cb69d
commit
303006e1df
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user