From e52cb2a43f51b0d126de2c5e3c0fb049b72f0c9e Mon Sep 17 00:00:00 2001 From: Strycher Date: Fri, 31 Jul 2026 23:52:16 -0400 Subject: [PATCH] feat(#480): show caps byte 2 in the Settings device-info row The byte was only observable in the app debug log, which makes validating byte-2 firmware a log hunt instead of a glance. Renders as "caps2 absent" or "caps2 0xNN" on the existing Offband caps row, added by #304 for exactly this purpose. "absent" is shown rather than the row being omitted, because telling "the radio sent byte 2" apart from "the radio is too old to send it" is the whole point, and all-bits-zero is a valid present value. Unblocks hardware validation of firmware PR #515 (#481). Epic: #474 Agent: CalmBay (session d14220d9) --- lib/screens/settings_screen.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dart index 81177da1..4d173e7c 100644 --- a/lib/screens/settings_screen.dart +++ b/lib/screens/settings_screen.dart @@ -409,11 +409,18 @@ class _SettingsScreenState extends State { // Capability-gated controls vanish silently when a bit is clear, // which is indistinguishable from a bug. Surface the raw inputs so // "missing feature" can be diagnosed without enabling logging. (#304) + // caps2 is shown as "absent" rather than omitted: on a radio running + // byte-2 firmware the whole point is telling "the radio sent it" and + // "the radio is too old to send it" apart at a glance, without + // opening the debug log. All-bits-zero is a valid present value. + // (#480) if (connector.offbandCaps != null) _buildInfoRow( l10n.settings_infoOffbandCaps, '0x${connector.offbandCaps!.toRadixString(16).padLeft(2, '0')}' ' (v${connector.firmwareVerCode ?? 0})' + ' · caps2 ' + '${connector.offbandCaps2 == null ? 'absent' : '0x${connector.offbandCaps2!.toRadixString(16).padLeft(2, '0')}'}' '${connector.supportsOffbandFemLna ? ' · FEM LNA' : ''}' '${connector.supportsOffbandBlock ? ' · block' : ''}', ),