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:
David Lechner
2020-05-25 21:31:35 -05:00
committed by David Lechner
parent 5160d29c7e
commit 33861d970b
7 changed files with 95 additions and 11 deletions
+10 -2
View File
@@ -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 };
}