Removed active printer static

issue: MatterHackers/MCCentral#4562
GCodeStream
This commit is contained in:
Lars Brubaker 2018-11-12 15:02:47 -08:00
parent 0e3225e529
commit 844f97a060
24 changed files with 4119 additions and 83 deletions

View file

@ -40,14 +40,12 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
private double currentProbeOffset;
private bool wroteLevelingStatus = false;
private bool gcodeAlreadyLeveled = false;
private PrinterConfig printer;
public PrintLevelingStream(PrinterConfig printer, GCodeStream internalStream, bool activePrinting)
: base(internalStream)
: base(printer, internalStream)
{
// always reset this when we construct
AllowLeveling = true;
this.printer = printer;
this.activePrinting = activePrinting;
}