Skip to content

Commit de0edb9

Browse files
authored
Update build_platform.py - uf2 not hex - fqbn to lowercase
1 parent 7763926 commit de0edb9

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
@@ -284,7 +284,7 @@ def generate_uf2(platform, fqbn, example_path):
284284
return output_file
285285

286286
# Generate using a hex file for all platforms except for ESP32-S2, ESP32-S3 (exports as .bin files)
287-
if not any (x in fqbn for x in ["esp32s2", "esp32s3"]):
287+
if not any (x in fqbn.lower() for x in ["esp32s2", "esp32s3"]):
288288
cli_build_hex_path = "build/*.*." + fqbn.split(':')[2] + "/*.hex"
289289
hex_input_file = glob1(os.path.join(example_path, cli_build_hex_path))
290290
output_file = os.path.splitext(hex_input_file)[0] + ".uf2"

0 commit comments

Comments
 (0)