Refactoring QueuedCommandsStream to take a PrinterConnection

Moved MacroProcessing out of QueuedCommandsStream
This commit is contained in:
Lars Brubaker 2017-08-04 09:37:28 -07:00
parent 836ec72300
commit 7a04b93d57
7 changed files with 299 additions and 190 deletions

View file

@ -68,9 +68,9 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
{
PrinterConnection.Instance.MacroStart();
SendCommandToPrinter(GCode);
if (GCode.Contains(QueuedCommandsStream.MacroPrefix))
if (GCode.Contains(MacroProcessingStream.MacroPrefix))
{
SendCommandToPrinter("\n" + QueuedCommandsStream.MacroPrefix + "close()");
SendCommandToPrinter("\n" + MacroProcessingStream.MacroPrefix + "close()");
}
}
}