Improve Connect commands

- Move M110 reset from ClearQueuedGCode to CreateStreamProcessors
- Reduce to one M110 during connect
- Fix currentLineIndexToSend to position correctly
- Move loadedGCode into root stream processor
This commit is contained in:
John Lewin 2018-01-04 18:29:35 -08:00
parent edceab2e85
commit ccb833fc68
3 changed files with 30 additions and 39 deletions

View file

@ -172,7 +172,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
// and skip everything else until we get to the point we left off last time
int commandCount = 0;
boundsOfSkippedLayers = RectangleDouble.ZeroIntersection;
while (internalStream.FileStreaming.PercentComplete(internalStream.LineIndex) < percentDone)
while (internalStream.GCodeFile.PercentComplete(internalStream.LineIndex) < percentDone)
{
string line = internalStream.ReadLine();
if(line == null)