mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-16 01:52:04 +00:00
Update WaypointModule.cpp (#4870)
In INVERTED display mode, the compass ring was not visible.
This commit is contained in:
parent
12481b568a
commit
14019f2afa
@ -171,15 +171,15 @@ void WaypointModule::drawFrame(OLEDDisplay *display, OLEDDisplayUiState *state,
|
|||||||
strncpy(distStr, "? km", sizeof(distStr));
|
strncpy(distStr, "? km", sizeof(distStr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Draw compass circle
|
||||||
|
display->drawCircle(compassX, compassY, compassDiam / 2);
|
||||||
|
|
||||||
// Undo color-inversion, if set prior to drawing header
|
// Undo color-inversion, if set prior to drawing header
|
||||||
// Unsure of expected behavior? For now: copy drawNodeInfo
|
// Unsure of expected behavior? For now: copy drawNodeInfo
|
||||||
if (config.display.displaymode == meshtastic_Config_DisplayConfig_DisplayMode_INVERTED) {
|
if (config.display.displaymode == meshtastic_Config_DisplayConfig_DisplayMode_INVERTED) {
|
||||||
display->setColor(BLACK);
|
display->setColor(BLACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw compass circle
|
|
||||||
display->drawCircle(compassX, compassY, compassDiam / 2);
|
|
||||||
|
|
||||||
// Must be after distStr is populated
|
// Must be after distStr is populated
|
||||||
screen->drawColumns(display, x, y, fields);
|
screen->drawColumns(display, x, y, fields);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user