From d8a38c6f6cb4dda38a0379f00077938ffe1718e9 Mon Sep 17 00:00:00 2001
From: Slider0007 <115730895+Slider0007@users.noreply.github.com>
Date: Fri, 11 Oct 2024 11:26:30 +0200
Subject: [PATCH] (webui): Configuration page: Fix flashlight GPIO mapping
indicator (#171)
Bug was introduced with #165
---
sd-card/html/edit_config_param.html | 1 +
sd-card/html/global_data.js | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/sd-card/html/edit_config_param.html b/sd-card/html/edit_config_param.html
index f7c350208..5611266ea 100644
--- a/sd-card/html/edit_config_param.html
+++ b/sd-card/html/edit_config_param.html
@@ -2722,6 +2722,7 @@
Configuration
gpioPinSelection.prop('selectedIndex', idx);
gpioPinSelectAfterChange(true);
getGpioPinUsage(parseInt(gpioPinSelection[0].value));
+ gpioPinModeChanged(); // Show GPIO mapping in 'Take Image' section
}
diff --git a/sd-card/html/global_data.js b/sd-card/html/global_data.js
index 1540819a2..ca5e9923f 100644
--- a/sd-card/html/global_data.js
+++ b/sd-card/html/global_data.js
@@ -374,7 +374,7 @@ function gatherChangedParameter(form, integer = false)
deepSet(data, path, value, integer);
}
jsonConfigModifiedDelta = deepMergeObjects(jsonConfigModifiedDelta, data);
- console.log(jsonConfigModifiedDelta) //@TODO: Remove log
+ //console.log(jsonConfigModifiedDelta)
}