mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-18 08:13:07 +01:00
make config names static members of GwConfigHandler
This commit is contained in:
@@ -131,7 +131,7 @@ def generateCfg(inFile,outFile,addDirs=[]):
|
|||||||
continue
|
continue
|
||||||
if len(n) > 15:
|
if len(n) > 15:
|
||||||
raise Exception("%s: config names must be max 15 caracters"%n)
|
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+=' protected:\n'
|
||||||
data+=' GwConfigInterface *configs[%d]={\n'%(l)
|
data+=' GwConfigInterface *configs[%d]={\n'%(l)
|
||||||
first=True
|
first=True
|
||||||
|
|||||||
Reference in New Issue
Block a user