Skip to content

Commit 646ad40

Browse files
committed
Fix for Marlin 2.X
1 parent 38b44c4 commit 646ad40

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.html.gz

12 Bytes
Binary file not shown.

www/js/temperatures.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ function process_Temperatures(response){
130130
var timedata = new Date().getTime();
131131
while ((result = regex_temp.exec(response)) !== null) {
132132
var tool = result[1];
133-
var value = result[3] + "°C";
133+
var value = parseFloat(result[3]).toFixed(2).toString()+ "°C";
134134
var value2;
135-
if (isNaN(parseFloat(result[5]))) value2 = "0.0";
136-
else value2 = result[5];
135+
if (isNaN(parseFloat(result[5]))) value2 = "0.00";
136+
else value2 = parseFloat(result[5]).toFixed(2).toString();
137137
value += " | " + value2 + "°C";
138138
if (tool == "T") {
139139
//to push to graph

0 commit comments

Comments
 (0)