From 6585cf5a0edc356b9313fdba4fd98194b44099db Mon Sep 17 00:00:00 2001 From: UA1ZBE Date: Fri, 22 May 2026 14:01:13 +0300 Subject: [PATCH] add distance display for mobile stations --- pr133.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pr133.ino b/pr133.ino index c8747dd..ce5511a 100644 --- a/pr133.ino +++ b/pr133.ino @@ -428,6 +428,11 @@ void drawStationScreen(int idx) { float kmh = s.speed * 1.852; snprintf(sp, sizeof(sp), "Speed: %.0f km/h", kmh); u8g2.drawUTF8(2, y, sp); + + char di[16]; + snprintf(di, sizeof(di), "Dist: %.1f km", s.distance); + int dw = u8g2.getUTF8Width(di); + u8g2.drawUTF8(126 - dw, y, di); } else if (s.comment.length() > 0) { String c = s.comment; if (u8g2.getUTF8Width(c.c_str()) > 124) {