mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 18:31:37 +00:00
Update Screen.cpp
Fixed variable shadowing
This commit is contained in:
parent
20d7d1b162
commit
9c21064634
@ -792,7 +792,7 @@ static void drawNodeInfo(OLEDDisplay *display, OLEDDisplayUiState *state, int16_
|
|||||||
// If the top of the compass is a static north then bearingToOther can be drawn on the compass directly
|
// If the top of the compass is a static north then bearingToOther can be drawn on the compass directly
|
||||||
// If the top of the compass is not a static north we need adjust bearingToOther based on heading
|
// If the top of the compass is not a static north we need adjust bearingToOther based on heading
|
||||||
if(!compassNorthTop)
|
if(!compassNorthTop)
|
||||||
float bearingToOther = bearingToOther - myHeading;
|
bearingToOther -= myHeading;
|
||||||
drawNodeHeading(display, compassX, compassY, bearingToOther);
|
drawNodeHeading(display, compassX, compassY, bearingToOther);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user