diff --git a/ESP/tools/createzip.py b/ESP/tools/createzip.py index 3ab5691..4a5b0f9 100644 --- a/ESP/tools/createzip.py +++ b/ESP/tools/createzip.py @@ -75,12 +75,14 @@ def createZip(source, target, env): elif chip_type == "esp32s3": flash_size = '8' + + if chip_type == "esp32c3" or chip_type == "esp32s3" or chip_type == "esp32s2": + chip_type = chip_type.replace("esp32", "esp32-") + # capitalize the chip type chip_type = chip_type.upper() - if chip_type == "esp32c3" or chip_type == "esp32s3" or chip_type == "esp32s2": - chip_type = chip_type.replace("ESP32", "ESP32-") - + sys.stdout.write(BLUE) print("Flash Mode: %s" % flash_mode) print("Chip Type: %s" % chip_type) print("Flash Frequency: %s" % flash_freq) @@ -96,6 +98,8 @@ def createZip(source, target, env): print("Executing: %s" % execute_cmd) + sys.stdout.write(RESET) + env.Execute( execute_cmd.format( chip=chip_type, flash_mode=flash_mode, flash_freq=flash_freq, flash_size=flash_size)