Keep extruders cool at the beginning of the print if the won't be used for longer than

the re-heat time.
issue: MatterHackers/MCCentral#5500
Inactive hotend cooldown does not apply at beginning of print
This commit is contained in:
Lars Brubaker 2019-05-14 14:11:37 -07:00
parent f99fa16fde
commit 29ce61e33a
2 changed files with 41 additions and 13 deletions

View file

@ -392,7 +392,12 @@ namespace MatterControl.Printing
public override PrinterMachineInstruction Instruction(int index)
{
return gCodeCommandQueue[index];
if (index < gCodeCommandQueue.Count)
{
return gCodeCommandQueue[index];
}
return new PrinterMachineInstruction("");
}
public override bool IsExtruding(int instructionIndexToCheck)