mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-01 17:56:12 +00:00
fix(compass): move "move to set heading" hint below the ring
The no-heading hint was centred on the compass circle, overlapping the ring. Draw it in the bottom readout band instead so the ring stays clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -56,8 +56,11 @@ public:
|
|||||||
display.fillRect(cx, cy - r - 1, 1, 2);
|
display.fillRect(cx, cy - r - 1, 1, 2);
|
||||||
|
|
||||||
if (!have) {
|
if (!have) {
|
||||||
display.drawTextCentered(cx, cy - display.getLineHeight() / 2, "move to");
|
// No stable heading yet — keep the ring as context but put the hint in
|
||||||
display.drawTextCentered(cx, cy + display.getLineHeight() / 2, "set heading");
|
// the bottom readout band so it doesn't overlap the circle.
|
||||||
|
int lh = display.getLineHeight();
|
||||||
|
display.drawTextCentered(cx, bottom + 1, "move to");
|
||||||
|
display.drawTextCentered(cx, bottom + 1 + lh, "set heading");
|
||||||
return 1000;
|
return 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user