From 89cd8ebb3e69ede36c4dd7e22505e0e2e45fdc5d Mon Sep 17 00:00:00 2001 From: Lars Brubaker Date: Tue, 10 Jan 2017 17:30:27 -0800 Subject: [PATCH] Fixed the print leveling bug --- PrinterCommunication/Io/PrintLevelingStream.cs | 2 +- Tests/MatterControl.AutomationTests/PrintingTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PrinterCommunication/Io/PrintLevelingStream.cs b/PrinterCommunication/Io/PrintLevelingStream.cs index 1a8e03f94..715d60716 100644 --- a/PrinterCommunication/Io/PrintLevelingStream.cs +++ b/PrinterCommunication/Io/PrintLevelingStream.cs @@ -50,7 +50,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io public PrinterMove LastDestination { get { return lastDestination; } } - public static bool Enabled { get; set; } + public static bool Enabled { get; set; } = true; public override string ReadLine() { diff --git a/Tests/MatterControl.AutomationTests/PrintingTests.cs b/Tests/MatterControl.AutomationTests/PrintingTests.cs index cff15e410..df389acda 100644 --- a/Tests/MatterControl.AutomationTests/PrintingTests.cs +++ b/Tests/MatterControl.AutomationTests/PrintingTests.cs @@ -105,7 +105,7 @@ namespace MatterHackers.MatterControl.Tests.Automation // assert the leveling is working testRunner.WaitForName("Resume Button", 30); - Assert.Greater(emulator.XPosition, 5); + Assert.Greater(emulator.ZPosition, 5); testRunner.ClickByName("Cancel Print Button", 1); }