Make sure we turn off print leveling as we are recovering.

This commit is contained in:
Lars Brubaker 2016-12-20 17:23:52 -08:00
parent 98668a9b22
commit 91b6d98e82
2 changed files with 8 additions and 0 deletions

View file

@ -49,11 +49,15 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
}
public PrinterMove LastDestination { get { return lastDestination; } }
public static bool Enabled { get; set; }
public override string ReadLine()
{
string lineFromChild = base.ReadLine();
if (lineFromChild != null
&& PrintLevelingStream.Enabled
&& PrinterConnectionAndCommunication.Instance.ActivePrinter.GetValue<bool>(SettingsKey.print_leveling_enabled))
{
if (LineIsMovement(lineFromChild))