Quellcode durchsuchen

ESP Flasher: add c3 and c6 to s3 option (#35)

* 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 <49810075+Willy-JL@users.noreply.github.com>
jay candel vor 1 Jahr
Ursprung
Commit
1163b58398
2 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 1 1
      esp_flasher/application.fam
  2. 4 4
      esp_flasher/scenes/esp_flasher_scene_browse.c

+ 1 - 1
esp_flasher/application.fam

@@ -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"],

+ 4 - 4
esp_flasher/scenes/esp_flasher_scene_browse.c

@@ -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;
@@ -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);