Add the bearing list back to the cycled pages on oled devices

This commit is contained in:
Ted Schundler 2025-07-12 16:16:53 -07:00
parent 32be1d9f6c
commit 74e786e5d7
2 changed files with 6 additions and 1 deletions

View File

@ -88,6 +88,8 @@ const char *getCurrentModeTitle(int screenWidth)
#endif
case MODE_DISTANCE:
return "Distance";
case MODE_BEARING:
return "Bearing";
default:
return "Nodes";
}
@ -310,6 +312,9 @@ void drawEntryDynamic(OLEDDisplay *display, meshtastic_NodeInfoLite *node, int16
case MODE_DISTANCE:
drawNodeDistance(display, node, x, y, columnWidth);
break;
case MODE_BEARING:
drawEntryCompass(display, node, x, y, columnWidth);
break;
default:
break;
}

View File

@ -24,7 +24,7 @@ typedef void (*EntryRenderer)(OLEDDisplay *, meshtastic_NodeInfoLite *, int16_t,
typedef void (*NodeExtrasRenderer)(OLEDDisplay *, meshtastic_NodeInfoLite *, int16_t, int16_t, int, float, double, double);
// Node list mode enumeration
enum NodeListMode { MODE_LAST_HEARD = 0, MODE_HOP_SIGNAL = 1, MODE_DISTANCE = 2, MODE_COUNT = 3 };
enum NodeListMode { MODE_LAST_HEARD = 0, MODE_HOP_SIGNAL = 1, MODE_DISTANCE = 2, MODE_BEARING = 3, MODE_COUNT = 4 };
// Main node list screen function
void drawNodeListScreen(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y, const char *title,