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)
feat/483-button-buzzer-ui
Strycher 4 months ago
parent 44ff206b18
commit e52cb2a43f

@ -409,11 +409,18 @@ class _SettingsScreenState extends State<SettingsScreen> {
// 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' : ''}',
),

Loading…
Cancel
Save

Powered by TurnKey Linux.