Optimised AM offset display
This commit is contained in:
+2
-2
@@ -3523,14 +3523,14 @@ void ShowOffset() {
|
|||||||
tuned = false;
|
tuned = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (OStatus <= -2) {
|
if (OStatus < -2) {
|
||||||
// Left arrow active (▶)
|
// Left arrow active (▶)
|
||||||
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
||||||
tft.fillCircle(centerX, centerY, 3, GreyoutColor);
|
tft.fillCircle(centerX, centerY, 3, GreyoutColor);
|
||||||
// Right arrow dimmed (◀)
|
// Right arrow dimmed (◀)
|
||||||
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, SignificantColor);
|
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, SignificantColor);
|
||||||
tuned = false;
|
tuned = false;
|
||||||
} else if (OStatus > -2 && OStatus < 2 && !SQ) {
|
} else if (OStatus >= -2 && OStatus <= 2 && !SQ) {
|
||||||
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
tft.fillTriangle(leftArrowBaseX, arrowBaseYTop, centerX - arrowGap, centerY, leftArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
||||||
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
tft.fillTriangle(rightArrowBaseX, arrowBaseYTop, centerX + arrowGap, centerY, rightArrowBaseX, arrowBaseYBottom, GreyoutColor);
|
||||||
tft.fillCircle(centerX, centerY, 3, InsignificantColor);
|
tft.fillCircle(centerX, centerY, 3, InsignificantColor);
|
||||||
|
|||||||
Reference in New Issue
Block a user