Don't send redundant M114

More tool change tests
This commit is contained in:
LarsBrubaker 2019-04-01 08:46:05 -07:00 committed by Lars Brubaker
parent d0181a1de2
commit 7368536188
3 changed files with 97 additions and 13 deletions

View file

@ -55,6 +55,20 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
}
}
public string LastAdd()
{
// lock queue
lock (locker)
{
if (commandQueue.Count > 0)
{
return commandQueue[commandQueue.Count - 1];
}
}
return null;
}
public void Add(string lineIn, bool forceTopOfQueue = false)
{
// lock queue