mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 14:08:35 -07:00
ESP Flasher dual boot
This commit is contained in:
@@ -34,11 +34,18 @@ typedef enum SelectedFlashOptions {
|
||||
SelectedFlashPart,
|
||||
SelectedFlashNvs,
|
||||
SelectedFlashBootApp0,
|
||||
SelectedFlashApp,
|
||||
SelectedFlashAppA,
|
||||
SelectedFlashAppB,
|
||||
SelectedFlashCustom,
|
||||
NUM_FLASH_OPTIONS
|
||||
} SelectedFlashOptions;
|
||||
|
||||
typedef enum {
|
||||
SwitchNotSet,
|
||||
SwitchToFirmwareA,
|
||||
SwitchToFirmwareB,
|
||||
} SwitchFirmware;
|
||||
|
||||
struct EspFlasherApp {
|
||||
Gui* gui;
|
||||
ViewDispatcher* view_dispatcher;
|
||||
@@ -61,13 +68,16 @@ struct EspFlasherApp {
|
||||
bool boot;
|
||||
bool quickflash;
|
||||
|
||||
SwitchFirmware switch_fw;
|
||||
|
||||
bool selected_flash_options[NUM_FLASH_OPTIONS];
|
||||
int num_selected_flash_options;
|
||||
char bin_file_path_boot[100];
|
||||
char bin_file_path_part[100];
|
||||
char bin_file_path_nvs[100];
|
||||
char bin_file_path_boot_app0[100];
|
||||
char bin_file_path_app[100];
|
||||
char bin_file_path_app_a[100];
|
||||
char bin_file_path_app_b[100];
|
||||
char bin_file_path_custom[100];
|
||||
FuriThread* flash_worker;
|
||||
bool flash_worker_busy;
|
||||
|
||||
Reference in New Issue
Block a user