Skip to content

Commit

Permalink
Merge pull request #140 from opensprinklershop/Fix-front-page-sensor-…
Browse files Browse the repository at this point in the history
…values
  • Loading branch information
salbahra committed Dec 13, 2023
2 parents 7bcf7f6 + 60610d9 commit 7cd962c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/analog.js
Expand Up @@ -70,7 +70,7 @@ function updateSensorShowArea( page ) {
var sensor = analogSensors[ i ];
if ( sensor.show ) {
html += "<div id='sensor-show-" + sensor.nr + "' class='ui-body ui-body-a center'>";
html += "<label>" + sensor.name + ": " + ( Math.round( sensor.data + "e+2" ) + "e-2" ) + sensor.unit + "</label>";
html += "<label>" + sensor.name + ": " ( +( Math.round( sensor.data + "e+2" ) + "e-2" ) ) + sensor.unit + "</label>";
html += "</div>";
}
}
Expand Down

0 comments on commit 7cd962c

Please sign in to comment.