diff --git a/MatterControlLib/PrinterCommunication/Drivers/Emulator/Emulator.cs b/MatterControlLib/PrinterCommunication/Drivers/Emulator/Emulator.cs index 6e0ca45a2..ca27cd312 100644 --- a/MatterControlLib/PrinterCommunication/Drivers/Emulator/Emulator.cs +++ b/MatterControlLib/PrinterCommunication/Drivers/Emulator/Emulator.cs @@ -94,6 +94,7 @@ namespace MatterHackers.PrinterEmulator { "M20", ListSdCard }, { "M21", InitSdCard }, { "M306", SetHomeOffset }, + { "M851", SetXYZProbeOffset }, { "N", ParseChecksumLine }, { "T0", SetExtruderIndex }, { "T1", SetExtruderIndex }, @@ -242,7 +243,7 @@ namespace MatterHackers.PrinterEmulator Console.WriteLine(command); } - if(command.StartsWith("T")) + if (command.StartsWith("T")) { int a = 0; } @@ -418,6 +419,13 @@ ok return "ok\n"; } + private string SetXYZProbeOffset(string command) + { + XYZProbeOffset = Destination; + + return "ok\n"; + } + private readonly Random rand = new Random(); private string ProbePosition(string command) @@ -709,6 +717,8 @@ ok public Vector3 HomePosition { get; set; } = default(Vector3); + public Vector3 XYZProbeOffset { get; set; } = default(Vector3); + public void Close() { this.ShutDown();