Add autoenabled configuration parameters
[bertos.git] / wizard / bertos_utils.py
index b872cf1501986baacbdd101199241a1b712d2cfc..47fa4b6b8572315b8c11e3bb53888bd7029bb82a 100644 (file)
@@ -56,6 +56,8 @@ def createBertosProject(projectInfo):
         string = open(sourcesDir + "/" + key, "r").read()
         for parameter, infos in value.items():
             value = infos["value"]
+            if "type" in infos["informations"] and infos["informations"]["type"] == "autoenabled":
+                value = "1"
             if "unsigned" in infos["informations"].keys() and infos["informations"]["unsigned"]:
                 value += "U"
             if "long" in infos["informations"].keys() and infos["informations"]["long"]: