From f67e9f7cc6224a1c3b6f507131f842e295ea4d8b Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Fri, 8 Sep 2023 12:41:04 -0400 Subject: [PATCH] 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. --- scripts/extra_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/extra_script.py b/scripts/extra_script.py index 80f7d644..486a8d71 100644 --- a/scripts/extra_script.py +++ b/scripts/extra_script.py @@ -158,7 +158,7 @@ def make_static(env, target, source): def process_html_app(source, dest, env): web_server_static_files = join(dest, "web_server_static_files.h") - web_server_static = join("$BUILDSRC_DIR", "web_server_static.cpp.o") + web_server_static = join(env.subst("$BUILD_DIR"), "src/web_server_static.cpp.o") files = filtered_listdir(source)