File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff 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:" ) ) {
Original file line number Diff line number Diff line change 11var interval_temperature = - 1 ;
2+ var graph_started = false ;
23
34var 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
7577function stop_graph_output ( ) {
7678 smoothieextuder . stop ( ) ;
7779 smoothiebed . stop ( ) ;
80+ graph_started = false ;
7881}
7982
8083function on_autocheck_temperature ( use_value ) {
You can’t perform that action at this time.
0 commit comments