mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-15 02:54:07 +00:00
Package firmware in app
- includes firmware .zip for movehub and cplushub - firmware flash button no longer opens file dialog - now connects first, then choses firmware based on connected device - drag and drop of custom firmware still works
This commit is contained in:
committed by
David Lechner
parent
5160d29c7e
commit
33861d970b
@@ -428,12 +428,20 @@ export enum BootloaderActionType {
|
||||
FlashProgress = 'bootloader.action.flash.progress',
|
||||
}
|
||||
|
||||
/**
|
||||
* Action that flashes firmware to a hub.
|
||||
*/
|
||||
export interface BootloaderFlashFirmwareAction
|
||||
extends Action<BootloaderActionType.FlashFirmware> {
|
||||
data: ArrayBuffer;
|
||||
/** The firmware zip file data or undefined to get firmware later. */
|
||||
data?: ArrayBuffer;
|
||||
}
|
||||
|
||||
export function flashFirmware(data: ArrayBuffer): BootloaderFlashFirmwareAction {
|
||||
/**
|
||||
* Creates a new action to flash firmware to a hub.
|
||||
* @param data The firmware zip file data or undefined to get firmware later.
|
||||
*/
|
||||
export function flashFirmware(data?: ArrayBuffer): BootloaderFlashFirmwareAction {
|
||||
return { type: BootloaderActionType.FlashFirmware, data };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user