Skip to content

Commit

Permalink
ESP Flasher: add c3 and c6 to s3 option (#35)
Browse files Browse the repository at this point in the history
* add c3, c6 to s3 option

reworded to fit inside line

* update using s3 to Using S3, C3 or C6

* change s3 flash name to 0x0

since s3 mode is writing bootloader at 0x0

---------

Co-authored-by: Willy-JL <[email protected]>
  • Loading branch information
jaylikesbunda and Willy-JL authored Nov 27, 2024
1 parent 033faf1 commit 1163b58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion esp_flasher/application.fam
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
App(
appid="esp_flasher",
name="[ESP] ESP Flasher",
fap_version=(1, 6),
fap_version=(1, 7),
apptype=FlipperAppType.EXTERNAL,
entry_point="esp_flasher_app",
requires=["gui"],
Expand Down
8 changes: 4 additions & 4 deletions esp_flasher/scenes/esp_flasher_scene_browse.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ static void esp_flasher_scene_browse_callback(void* context, uint32_t index) {
#define STR_APP_A "FirmwareA(" TOSTRING(ESP_ADDR_APP_A) ")"
#define STR_APP_B "FirmwareB(" TOSTRING(ESP_ADDR_APP_B) ")"
#define STR_CUSTOM "Custom"
#define STR_FLASH_S3 "[>] FLASH - slow (S3)"
#define STR_FLASH_S3 "[>] FLASH - slow (0x0)"
#define STR_FLASH "[>] FLASH - slow"
#define STR_FLASH_TURBO_S3 "[>] FLASH - fast (S3)"
#define STR_FLASH_TURBO_S3 "[>] FLASH - fast (0x0)"
#define STR_FLASH_TURBO "[>] FLASH - fast"
static void _refresh_submenu(EspFlasherApp* app) {
Submenu* submenu = app->submenu;
Expand All @@ -192,8 +192,8 @@ static void _refresh_submenu(EspFlasherApp* app) {
submenu_set_header(submenu, "Browse for files to flash");
submenu_add_item(
submenu,
app->selected_flash_options[SelectedFlashS3Mode] ? "[x] Using ESP32-S3" :
"[ ] Select if using S3",
app->selected_flash_options[SelectedFlashS3Mode] ? "[x] Using S3, C3 or C6" :
"[ ] Select for S3, C3, C6",
SubmenuIndexS3Mode,
esp_flasher_scene_browse_callback,
app);
Expand Down

0 comments on commit 1163b58

Please sign in to comment.