Move stream debug helpers into base type
This commit is contained in:
parent
4f83e765b6
commit
7e1917b032
8 changed files with 47 additions and 21 deletions
|
|
@ -34,7 +34,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
|
|||
public class GCodeFileStream : GCodeStream
|
||||
{
|
||||
private int printerCommandQueueLineIndex = -1;
|
||||
public GCodeFile GCodeFile { get; }
|
||||
private string lastLine = "";
|
||||
|
||||
public GCodeFileStream(GCodeFile fileStreaming, PrinterConfig printer, int startLine = 0)
|
||||
: base(printer)
|
||||
|
|
@ -43,6 +43,8 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
|
|||
printerCommandQueueLineIndex = startLine;
|
||||
}
|
||||
|
||||
public GCodeFile GCodeFile { get; }
|
||||
|
||||
public int LineIndex => printerCommandQueueLineIndex;
|
||||
|
||||
public override string ReadLine()
|
||||
|
|
@ -62,5 +64,9 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
|
|||
public override void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
public override GCodeStream InternalStream => null;
|
||||
|
||||
public override string DebugInfo => lastLine;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue