reuse existing function

This commit is contained in:
Lars Brubaker 2019-05-21 16:04:18 -07:00
parent 5ba08b27ac
commit 5533fd02a2
2 changed files with 2 additions and 2 deletions

View file

@ -446,7 +446,7 @@ namespace MatterControl.Printing
{
// don't turn of extruders if we will end the print within 10 minutes
if (instructionIndex < gCodeCommandQueue.Count
&& gCodeCommandQueue[0].SecondsToEndFromHere < PrintTimeToLeaveHeatersOn)
&& this.TotalSecondsInPrint < PrintTimeToLeaveHeatersOn)
{
return (toolToLookFor, gCodeCommandQueue[instructionIndex].SecondsToEndFromHere);
}