Skip to content

Commit

Permalink
v3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 committed Jun 23, 2024
1 parent ba81470 commit 71bde6b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions esp_flasher/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion esp_flasher/const.py
Original file line number Diff line number Diff line change
@@ -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/"
Expand Down

0 comments on commit 71bde6b

Please sign in to comment.