From 71bde6b8c790b3722ad7863d788143d89a4752ed Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 23 Jun 2024 19:49:35 +0200 Subject: [PATCH] v3.0.1 --- esp_flasher/common.py | 19 ++++++++++++++++--- esp_flasher/const.py | 2 +- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/esp_flasher/common.py b/esp_flasher/common.py index 3b3f4c0..5f81a69 100644 --- a/esp_flasher/common.py +++ b/esp_flasher/common.py @@ -330,9 +330,22 @@ def configure_write_flash_args( min_rev, min_rev_full, max_rev_full, elf_sha256_offset, use_segments, flash_mmu_page_size, pad_to_size, spi_connection, output) -def detect_chip(port, force_esp8266=False, force_esp32=False): - if force_esp8266 or force_esp32: - klass = esptool.ESP32ROM if force_esp32 else esptool.ESP8266ROM +def detect_chip(port, force_esp8266=False, force_esp32=False, force_esp32s2=False, force_esp32s3=False, force_esp32c2=False, force_esp32c3=False, force_esp32c6=False): + if force_esp8266 or force_esp32 or force_esp32s2 or force_esp32s3 or force_esp32c2 or force_esp32c3 or force_esp32c6: + if force_esp8266: + klass = esptool.ESP8266ROM + elif force_esp32: + klass = esptool.ESP32ROM + elif force_esp32s2: + klass = esptool.ESP32S2ROM + elif force_esp32s3: + klass = esptool.ESP32S3ROM + elif force_esp32c2: + klass = esptool.ESP32C2ROM + elif force_esp32c3: + klass = esptool.ESP32C3ROM + elif force_esp32c6: + klass = esptool.ESP32C6ROM chip = klass(port) else: try: diff --git a/esp_flasher/const.py b/esp_flasher/const.py index ea5d3ec..6c7beb7 100644 --- a/esp_flasher/const.py +++ b/esp_flasher/const.py @@ -1,6 +1,6 @@ import re -__version__ = "3.0.0" +__version__ = "3.0.1" ESP32_DEFAULT_OTA_DATA = ( "https://raw.githubusercontent.com/Jason2866/ESP_Flasher/factory/"