Skip to content

Commit 5bfd24c

Browse files
committed
Add Auto report temperature for Marlin embedded
1 parent 1eeb7b1 commit 5bfd24c

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

index.html.gz

38 Bytes
Binary file not shown.

www/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
var target_firmware = "";
1111
</script>
1212
<script>
13-
var web_ui_version = "2.1b49";
13+
var web_ui_version = "2.1b50";
1414
</script>
1515
<script>
1616
var direct_sd = false;

www/js/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,8 @@ function process_socket_response(msg) {
687687
//to stop waiting for data
688688
console.log("Got settings Start");
689689
}
690-
if (msg.startsWith("ok T:")) {
690+
if (msg.startsWith("ok T:") || msg.startsWith(" T:")) {
691+
if (!graph_started)start_graph_output();
691692
process_Temperatures(msg);
692693
}
693694
if (msg.startsWith("X:")) {

www/js/temperatures.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var interval_temperature = -1;
2+
var graph_started = false;
23

34
var smoothieextuder = new SmoothieChart({
45
millisPerPixel: 200,
@@ -70,11 +71,13 @@ function start_graph_output() {
7071
document.getElementById('temperatures_output').style.display = 'block';
7172
smoothieextuder.start();
7273
smoothiebed.start();
74+
graph_started = true;
7375
}
7476

7577
function stop_graph_output() {
7678
smoothieextuder.stop();
7779
smoothiebed.stop();
80+
graph_started = false;
7881
}
7982

8083
function on_autocheck_temperature(use_value) {

0 commit comments

Comments
 (0)