firmware - add refreshSensors to systemconfig when configured
This commit is contained in:
parent
85d785f3cd
commit
33231851fe
1 changed files with 2 additions and 0 deletions
|
@ -718,6 +718,8 @@ void WEBsystemSettings() {
|
||||||
body += "' required><br>\n";
|
body += "' required><br>\n";
|
||||||
|
|
||||||
if(configured == true) {
|
if(configured == true) {
|
||||||
|
// refresh valSoilmoistureRaw to ensure we have fresh data
|
||||||
|
refreshSensors();
|
||||||
body += "Soilmoisture raw reading: <i><span id='iSoilmoistureRaw'>";
|
body += "Soilmoisture raw reading: <i><span id='iSoilmoistureRaw'>";
|
||||||
body += valSoilmoistureRaw;
|
body += valSoilmoistureRaw;
|
||||||
body += "</span></i> <input type='button' class='button' value='🔃 Refresh' style='padding: 3px;' onclick='SoilmoistureRefresh();'><br>\n";
|
body += "</span></i> <input type='button' class='button' value='🔃 Refresh' style='padding: 3px;' onclick='SoilmoistureRefresh();'><br>\n";
|
||||||
|
|
Loading…
Reference in a new issue