1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 06:53:07 +01:00

make config names static members of GwConfigHandler

This commit is contained in:
andreas
2022-03-01 15:21:28 +01:00
parent 799fd49696
commit b51c36a5bb

View File

@@ -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