Update Screen.cpp

Fixed variable shadowing
This commit is contained in:
loodydo 2022-07-09 11:47:50 -06:00 committed by GitHub
parent 20d7d1b162
commit 9c21064634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}