From 3bcb94ec100bc71511307e9e28d079ea6df6154e Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Thu, 4 Jun 2026 09:37:37 +0200 Subject: [PATCH] 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 --- examples/companion_radio/ui-new/CompassScreen.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/companion_radio/ui-new/CompassScreen.h b/examples/companion_radio/ui-new/CompassScreen.h index bf73566c..6ea198d5 100644 --- a/examples/companion_radio/ui-new/CompassScreen.h +++ b/examples/companion_radio/ui-new/CompassScreen.h @@ -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; }