Fix text running off screen in Sub-GHz and GATT Server screens

Sub-GHz Scanner: shorten the peak readout and the hint line. Sub-GHz Spectrum:
shorten the centre/span header and show only peak dBm on the right so the two
no longer overlap. GATT Server: put the service state on its own line (was
overlapping the title), shorten "Serial GATT service (RX/TX)", and cap the
last-received text so none of it exceeds 128 px.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LEaD4ZeAfvWLBUxXp8G11r
This commit is contained in:
2026-09-10 23:48:11 +01:00
co-authored by Claude Fable 5.1
parent 02f799cf9c
commit 99d65f674d
3 changed files with 13 additions and 15 deletions
+2 -2
View File
@@ -146,7 +146,7 @@ static void draw_cb(Canvas* c, void* ctx) {
(unsigned long)(m->range_end / 1000 % 1000));
canvas_draw_str(c, 2, 20, buf);
snprintf(
buf, sizeof(buf), "peak %lu.%03lu MHz %d dBm", (unsigned long)(m->peak_freq / 1000000),
buf, sizeof(buf), "pk %lu.%03luM %ddBm", (unsigned long)(m->peak_freq / 1000000),
(unsigned long)(m->peak_freq / 1000 % 1000), (int)m->peak_rssi);
canvas_draw_str(c, 2, 29, buf);
@@ -159,7 +159,7 @@ static void draw_cb(Canvas* c, void* ctx) {
int h = (int)((r + 110) / 70.0f * gh);
canvas_draw_line(c, i, gy + gh - h, i, gy + gh);
}
canvas_draw_str(c, 2, 63, "OK pause <>band Back exit");
canvas_draw_str(c, 2, 63, "OK:pause <>:band");
furi_mutex_release(app->mutex);
}