mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-14 17:12:08 +00:00
Fix the tittle name
This commit is contained in:
parent
6b2e03e9d2
commit
56fbfe13ae
@ -1923,7 +1923,8 @@ static int scrollIndex = 0;
|
|||||||
|
|
||||||
// Use dynamic timing based on mode
|
// Use dynamic timing based on mode
|
||||||
unsigned long getModeCycleIntervalMs() {
|
unsigned long getModeCycleIntervalMs() {
|
||||||
return (currentMode == MODE_DISTANCE) ? 3000 : 2000;
|
//return (currentMode == MODE_DISTANCE) ? 3000 : 2000;
|
||||||
|
return 2000;
|
||||||
}
|
}
|
||||||
|
|
||||||
// h! Calculates bearing between two lat/lon points (used for compass)
|
// h! Calculates bearing between two lat/lon points (used for compass)
|
||||||
@ -2267,13 +2268,17 @@ void drawEntryDynamic(OLEDDisplay *display, meshtastic_NodeInfoLite *node, int16
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* getCurrentModeTitle()
|
const char* getCurrentModeTitle(int screenWidth)
|
||||||
{
|
{
|
||||||
switch (currentMode) {
|
switch (currentMode) {
|
||||||
case MODE_LAST_HEARD: return "Node List";
|
case MODE_LAST_HEARD:
|
||||||
case MODE_HOP_SIGNAL: return "Hop|Sig";
|
return "Node List";
|
||||||
case MODE_DISTANCE: return "Distances";
|
case MODE_HOP_SIGNAL:
|
||||||
default: return "Nodes";
|
return (screenWidth > 128) ? "Hops|Signals" : "Hop|Sig";
|
||||||
|
case MODE_DISTANCE:
|
||||||
|
return "Distances";
|
||||||
|
default:
|
||||||
|
return "Nodes";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2302,7 +2307,7 @@ static void drawDynamicNodeListScreen(OLEDDisplay *display, OLEDDisplayUiState *
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Render screen based on currentMode
|
// Render screen based on currentMode
|
||||||
const char* title = getCurrentModeTitle();
|
const char* title = getCurrentModeTitle(display->getWidth());
|
||||||
drawNodeListScreen(display, state, x, y, title, drawEntryDynamic);
|
drawNodeListScreen(display, state, x, y, title, drawEntryDynamic);
|
||||||
|
|
||||||
// Track the last mode to avoid reinitializing modeStartTime
|
// Track the last mode to avoid reinitializing modeStartTime
|
||||||
|
Loading…
Reference in New Issue
Block a user