firmware - add refreshSensors to systemconfig when configured

This commit is contained in:
DeltaLima 2024-12-12 02:29:04 +01:00
parent 85d785f3cd
commit 33231851fe

View file

@ -718,6 +718,8 @@ void WEBsystemSettings() {
body += "' required><br>\n";
if(configured == true) {
// refresh valSoilmoistureRaw to ensure we have fresh data
refreshSensors();
body += "Soilmoisture raw reading: <i><span id='iSoilmoistureRaw'>";
body += valSoilmoistureRaw;
body += "</span></i> <input type='button' class='button' value='&#x1F503; Refresh' style='padding: 3px;' onclick='SoilmoistureRefresh();'><br>\n";