mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 14:12:05 +00:00
Compas offset
This commit is contained in:
parent
22b44ce7e6
commit
af7a70ce08
@ -2480,7 +2480,7 @@ static void drawCompassAndLocationScreen(OLEDDisplay *display, OLEDDisplayUiStat
|
||||
if (validHeading) {
|
||||
uint16_t compassDiam = Screen::getCompassDiam(SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||
int16_t compassX = x + SCREEN_WIDTH - compassDiam / 2 - 8;
|
||||
int16_t compassY = y + SCREEN_HEIGHT / 2 + rowYOffset;
|
||||
int16_t compassY = y + SCREEN_HEIGHT / 2 + (rowYOffset / 2);
|
||||
|
||||
screen->drawCompassNorth(display, compassX, compassY, heading);
|
||||
screen->drawNodeHeading(display, compassX, compassY, compassDiam, -heading);
|
||||
|
Loading…
Reference in New Issue
Block a user