Skip to content

Commit 806bb3f

Browse files
committed
Expand path to tinuf2 image when checking existence
1 parent b63f947 commit 806bb3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/platformio-build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ def add_tinyuf2_extra_image():
126126
)
127127

128128
# Add the UF2 image only if it exists and it's not already added
129-
if not isfile(tinuf2_image):
130-
print("Warning! The `%s` UF2 bootloader image doesn't exist" % tinuf2_image)
129+
if not isfile(env.subst(tinuf2_image)):
130+
print("Warning! The `%s` UF2 bootloader image doesn't exist" % env.subst(tinuf2_image))
131131
return
132132

133133
if any(

0 commit comments

Comments
 (0)