Refactoring QueuedCommandsStream to take a PrinterConnection
Moved MacroProcessing out of QueuedCommandsStream
This commit is contained in:
parent
836ec72300
commit
7a04b93d57
7 changed files with 299 additions and 190 deletions
|
|
@ -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()");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue