Send temps to printer even when there are no future tool changes

This commit is contained in:
LarsBrubaker 2019-05-19 20:11:45 -07:00
parent bc96467792
commit a4b60206b2

View file

@ -146,7 +146,14 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
// For smoothie, switch back to the extrude we were using before the temp change (smoothie switches to the specified extruder, marlin repetier do not)
queuedCommands.Enqueue($"T{activeTool}");
var temp = GetNextToolTemp(requestedToolForTempChange);
return $"{lineToSend.Substring(0, 4)} T{requestedToolForTempChange} S{temp}";
if (temp > 0)
{
return $"{lineToSend.Substring(0, 4)} T{requestedToolForTempChange} S{temp}";
}
else // send the temp as requested
{
return lineToSend;
}
}
// if we are waiting to switch to the next tool