mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 23:08:11 +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);
|
||||
|
||||
if (!have) {
|
||||
display.drawTextCentered(cx, cy - display.getLineHeight() / 2, "move to");
|
||||
display.drawTextCentered(cx, cy + display.getLineHeight() / 2, "set heading");
|
||||
// No stable heading yet — keep the ring as context but put the hint in
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user