fix setHostname/etc on ESP8266

This commit is contained in:
Gordon Williams 2018-02-14 08:54:20 +00:00
parent 67f77947ae
commit 31eadf25f8

View File

@ -185,6 +185,7 @@ def get_jsondata(is_for_document, parseArgs = True, board = False):
if ("#if" in jsondata):
expr = jsondata["#if"]
for defn in defines:
expr = expr.replace("defined("+defn+")", "True");
if defn.find('=')!=-1:
dname = defn[:defn.find('=')]
dkey = defn[defn.find('=')+1:]