Skip to content

Commit

Permalink
Don't send M105 when the terminal is open.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffeb3 committed Jul 23, 2020
1 parent 641545e commit 239ec1e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions TFT/src/User/API/Temperature.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,10 @@ void loopCheckHeater(void)
do
{ // Send M105 query temperature continuously
if(heat_update_waiting == true) {updateNextHeatCheckTime();break;}
if(OS_GetTimeMs() < nextHeatCheckTime) break;
if(RequestCommandInfoIsRunning()) break; //to avoid colision in Gcode response processing
if(storeCmd("M105\n") == false) break;
if(OS_GetTimeMs() < nextHeatCheckTime) break;
if(RequestCommandInfoIsRunning()) break; //to avoid colision in Gcode response processing
if(infoMenu.menu[infoMenu.cur] == menuTerminal) break; //to avoid M105 during terminal viewing
if(storeCmd("M105\n") == false) break;
updateNextHeatCheckTime();
heat_update_waiting = true;
}while(0);
Expand Down

0 comments on commit 239ec1e

Please sign in to comment.