|
|
@@ -679,6 +679,13 @@ function WriteConfigININew() {
|
|
|
config_split.push(text);
|
|
|
|
|
|
for (var name in param[cat]) {
|
|
|
+ // Do not write synthetic or board-forbidden GPIO entries.
|
|
|
+ if (cat === "GPIO" && name.indexOf("IO") === 0 &&
|
|
|
+ (!window.GPIO_AVAILABLE_PINS ||
|
|
|
+ window.GPIO_AVAILABLE_PINS.indexOf(parseInt(name.substring(2), 10)) === -1)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
if (param[cat][name]["Numbers"]) {
|
|
|
for (_num in NUMBERS) {
|
|
|
text = NUMBERS[_num]["name"] + "." + name;
|