Don't send redundant M114
More tool change tests
This commit is contained in:
parent
d0181a1de2
commit
7368536188
3 changed files with 97 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue