diff --git a/esp_flasher/common.py b/esp_flasher/common.py index 366fbd0..8e1fa69 100644 --- a/esp_flasher/common.py +++ b/esp_flasher/common.py @@ -282,7 +282,7 @@ def configure_write_flash_args( pad_to_size = "" spi_connection = "" - if not flag_factory: # No factory image + if (isinstance(info, ESP32ChipInfo)) and not flag_factory: # esp32 and no factory image uwd = os.path.expanduser("~") esp_flasher_ver = "ESP_Flasher_" + __version__ bootloaderstring = "bootloader_" + flash_mode + "_" + flash_freq + ".elf"