mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
ci(ci-fix): esp32 chipset capitalization issue
This commit is contained in:
parent
eccdae9af5
commit
a0835a6403
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user