From b44ee6a599ddf3739d2341e293c67b6c2cddd6ba Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Fri, 23 Oct 2026 23:00:52 +0200 Subject: [PATCH] feat(status): the path hash size on Status > Radio (L2: Diag > Radio) Bytes per repeater in a path we send (Settings > Radio > Advanced), next to the TX power. Co-Authored-By: Claude Opus 5.5 --- examples/companion_radio/ui-lvgl/DiagScreen.h | 2 ++ examples/companion_radio/ui-new/StatusScreen.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/examples/companion_radio/ui-lvgl/DiagScreen.h b/examples/companion_radio/ui-lvgl/DiagScreen.h index 6d6bfc70..02b492cd 100644 --- a/examples/companion_radio/ui-lvgl/DiagScreen.h +++ b/examples/companion_radio/ui-lvgl/DiagScreen.h @@ -433,6 +433,8 @@ void UITask::buildDiag() { infoRow(card, "Coding rate", v); snprintf(v, sizeof(v), "%d dBm", (int)p->tx_power_dbm); infoRow(card, "TX power", v); + snprintf(v, sizeof(v), "%u byte%s", p->path_hash_mode + 1u, p->path_hash_mode ? "s" : ""); + infoRow(card, "Path hash", v); // bytes per repeater in a path we send } } diff --git a/examples/companion_radio/ui-new/StatusScreen.h b/examples/companion_radio/ui-new/StatusScreen.h index b6625827..0ab8aa80 100644 --- a/examples/companion_radio/ui-new/StatusScreen.h +++ b/examples/companion_radio/ui-new/StatusScreen.h @@ -130,6 +130,10 @@ private: } snprintf(a, sizeof(a), "%d dBm", (int)radio_driver.getTxPower()); row(d, f, rsv, "TX power", a); + // Bytes per repeater in a path we send (Settings > Radio > Advanced). + const unsigned hb = p ? p->path_hash_mode + 1u : 1u; + snprintf(a, sizeof(a), "%u byte%s", hb, hb > 1 ? "s" : ""); + row(d, f, rsv, "Path hash", a); const int nf = (int)radio_driver.getNoiseFloor(); if (nf) snprintf(a, sizeof(a), "%d dBm", nf); else strcpy(a, "-"); if (Features::IS_EINK) {