Skip to content

Commit

Permalink
Fix sensor values format on front page
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Schmaltz committed Dec 13, 2023
1 parent 7bcf7f6 commit 60610d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/analog.js
Original file line number Diff line number Diff line change
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 60610d9

Please sign in to comment.