FirmwareUpdateActions
data class FirmwareUpdateActions(val onReleaseTypeSelect: (FirmwareReleaseType) -> Unit, val onStartUpdate: (Boolean) -> Unit, val onPickFile: () -> Unit, val onSaveFile: (String) -> Unit, val onPickVolume: () -> Unit, val onBootloaderUpgrade: () -> Unit, val onBleBootloaderUpgrade: () -> Unit, val onConfirmBootloaderUpgrade: () -> Unit, val onSkipBootloaderUpgrade: () -> Unit, val onConfirmLocalFile: () -> Unit, val onDismissLocalFile: () -> Unit, val onRetry: () -> Unit, val onRetryVerification: () -> Unit, val onCancel: () -> Unit, val onPlayChirpyHop: () -> Unit, val onDone: () -> Unit, val onDismissBootloaderWarning: () -> Unit)(source)
Constructors
Link copied to clipboard
constructor(onReleaseTypeSelect: (FirmwareReleaseType) -> Unit, onStartUpdate: (Boolean) -> Unit, onPickFile: () -> Unit, onSaveFile: (String) -> Unit, onPickVolume: () -> Unit, onBootloaderUpgrade: () -> Unit, onBleBootloaderUpgrade: () -> Unit, onConfirmBootloaderUpgrade: () -> Unit, onSkipBootloaderUpgrade: () -> Unit, onConfirmLocalFile: () -> Unit, onDismissLocalFile: () -> Unit, onRetry: () -> Unit, onRetryVerification: () -> Unit, onCancel: () -> Unit, onPlayChirpyHop: () -> Unit, onDone: () -> Unit, onDismissBootloaderWarning: () -> Unit)
Properties
Link copied to clipboard
Upgrades the bootloader over BLE, then reinstalls the selected release.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Pick the device's UF2 volume for a maintenance pass, which vets the drive before writing to it.
Link copied to clipboard
Opens Chirpy Hop over the screen while an update runs.
Link copied to clipboard
Link copied to clipboard
Waits again for the flashed device to come back, without flashing it again.
Link copied to clipboard
Link copied to clipboard
Leaves the bootloader as it is and moves on to reinstalling the firmware.
Link copied to clipboard
Starts the update; true means the user opted into wiping the device as part of it (default off in the UI).