Skip to content

Commit f67e9f7

Browse files
cscottjeremypoulter
authored andcommitted
Fix GUI update rules when BUILDSRC_DIR is not defined
platformio doesn't appear to define $BUILDSRC_DIR, which means the generated dependencies never matched actual files and the GUI would not be regenerated from modified sources.
1 parent 9b32cef commit f67e9f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/extra_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def make_static(env, target, source):
158158

159159
def process_html_app(source, dest, env):
160160
web_server_static_files = join(dest, "web_server_static_files.h")
161-
web_server_static = join("$BUILDSRC_DIR", "web_server_static.cpp.o")
161+
web_server_static = join(env.subst("$BUILD_DIR"), "src/web_server_static.cpp.o")
162162

163163
files = filtered_listdir(source)
164164

0 commit comments

Comments
 (0)