Skip to content

fix(firmware): prompt to confirm on-device during firmware upload#350

Merged
BitHighlander merged 1 commit into
developfrom
fix/firmware-flash-confirm-prompt
Jul 12, 2026
Merged

fix(firmware): prompt to confirm on-device during firmware upload#350
BitHighlander merged 1 commit into
developfrom
fix/firmware-flash-confirm-prompt

Conversation

@BitHighlander

Copy link
Copy Markdown
Collaborator

During live btc-only testing, flashing unsigned firmware stranded the setup wizard: the bootloader's 'unrecognized firmware, install anyway?' confirm appears at the upload stage, but the progress message said only Uploading firmware... — no hint to look at the device, so it read as a hang.

node-hid readSync blocks the event loop during the button wait (per the in-code flash notes), so a button-request event can't reliably fire mid-upload. The message emitted before the blocking firmwareUpload is the reliable signal — reword it (firmware update, custom flash, bootloader paths) to direct the user to the device.

Flashing unsigned firmware, the bootloader shows an 'unrecognized firmware,
install anyway?' confirm at the UPLOAD stage — but the progress message just
said 'Uploading firmware...', so the flash looked stuck with no hint to look
at the device (real report: user didn't press confirm, wizard stranded).

node-hid readSync blocks the event loop during the button wait (see flash
notes), so a button-request event can't reliably fire mid-upload — the message
emitted *before* the blocking firmwareUpload is the reliable signal. Reword the
upload-stage messages (firmware update, custom flash, bootloader) to tell the
user to look at the device and confirm if prompted.
@BitHighlander BitHighlander merged commit 5f46d90 into develop Jul 12, 2026
@BitHighlander BitHighlander deleted the fix/firmware-flash-confirm-prompt branch July 12, 2026 15:18
@BitHighlander

Copy link
Copy Markdown
Collaborator Author

Backed out of develop and consolidated into a single reviewable PR: #353 (branch btc-only). The change itself is unchanged — this was a history cleanup so btc-only ships as one PR. Nothing to do here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant