Skip to content

Commit 242c654

Browse files
committed
any
1 parent 004f3d0 commit 242c654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def generate_uf2(example_path):
337337

338338
# Generate using a hex file for all platforms except for ESP32-S2, ESP32-S3 (exports as .bin files)
339339
print("GENERATING FOR FQBN: ", fqbn)
340-
if not "esp32s2" or not "esp32s3" in fqbn:
340+
if not any (x in fqbn for x in ["esp32s2", "esp32s3"]):
341341
print("GENERATE HEX")
342342
cli_build_hex_path = "build/*.*." + fqbn.split(':')[2] + "/*.hex"
343343
hex_input_file = glob1(os.path.join(example_path, cli_build_hex_path))

0 commit comments

Comments
 (0)