From b51c36a5bbc65f2c78688a743253754f40281d6d Mon Sep 17 00:00:00 2001 From: andreas Date: Tue, 1 Mar 2022 15:21:28 +0100 Subject: [PATCH] make config names static members of GwConfigHandler --- extra_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra_script.py b/extra_script.py index 4129a60..0331e39 100644 --- a/extra_script.py +++ b/extra_script.py @@ -131,7 +131,7 @@ def generateCfg(inFile,outFile,addDirs=[]): continue if len(n) > 15: raise Exception("%s: config names must be max 15 caracters"%n) - data+=' const String %s=F("%s");\n'%(n,n) + data+=' static constexpr const __FlashStringHelper* %s=F("%s");\n'%(n,n) data+=' protected:\n' data+=' GwConfigInterface *configs[%d]={\n'%(l) first=True