FirmwareUpdateState
State machine for the firmware update flow, observed by FirmwareUpdateScreen.
Inheritors
Types
UF2 file is ready; waiting for the user to choose a save location (USB flow).
Resolving device hardware and fetching available firmware releases.
Firmware file is being downloaded from the release server.
An error occurred at any stage of the update pipeline.
No update activity — initial state before FirmwareUpdateViewModel.checkForUpdates runs.
Intermediate processing (e.g. extracting, preparing DFU).
Device and release info resolved; the user may initiate an update.
The firmware update completed and the device reconnected successfully.
Firmware is actively being written to the device.
The device did not reconnect within the expected timeout after flashing.
Waiting for the device to reboot and reconnect after a successful flash.