fix(autodetection): Remove the ESP32-S2 ROM class from get_security_info autodetection

This commit is contained in:
radim.karnis
2023-07-27 14:31:13 +02:00
parent cc6c4cebc4
commit 3d8c304e72

View File

@@ -96,7 +96,7 @@ def detect_chip(
print("Detecting chip type...", end="")
chip_id = detect_port.get_chip_id()
for cls in [
n for n in ROM_LIST if n.CHIP_NAME not in ("ESP8266", "ESP32", "ESP32S2")
n for n in ROM_LIST if n.CHIP_NAME not in ("ESP8266", "ESP32", "ESP32-S2")
]:
# cmd not supported on ESP8266 and ESP32 + ESP32-S2 doesn't return chip_id
if chip_id == cls.IMAGE_CHIP_ID: