From 9c21064634cd0c9293108fe491d4856d1107cd01 Mon Sep 17 00:00:00 2001 From: loodydo <30909547+loodydo@users.noreply.github.com> Date: Sat, 9 Jul 2022 11:47:50 -0600 Subject: [PATCH] Update Screen.cpp Fixed variable shadowing --- src/graphics/Screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index a62829052..7169bbe2d 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -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 not a static north we need adjust bearingToOther based on heading if(!compassNorthTop) - float bearingToOther = bearingToOther - myHeading; + bearingToOther -= myHeading; drawNodeHeading(display, compassX, compassY, bearingToOther); } }