Build Version Anzeige, WiFi auto off, redirect to Settings Site

This commit is contained in:
FCS committed 2026-08-30 11:04:03 +02:00
1 parent e5453b29fa
commit 57ccb75847
4 files changed
+104 -12

No files matched your search

+3 -1
View File
@@ -3,8 +3,10 @@ Import("env")
# Access to global construction environment
build_tag = env['PIOENV']
version_tag = os.getenv("FIRMWARE_VERSION")
version_tag = os.getenv("FIRMWARE_VERSION", "dev").strip()
# CPPDEFINES ensures the macro expands to a valid C string literal instead of a bare identifier.
env.Append(CPPDEFINES=[('FIRMWARE_VERSION', f'\\"{version_tag}\\"')])
env.Replace(PROGNAME="firmware_%s_%s" % (build_tag, version_tag))
# include toolchain paths