Working to get the gcode export with leveling working with 2point leveling.

This commit is contained in:
larsbrubaker 2014-06-12 18:35:11 -07:00
parent 95a703d371
commit 8bd225b7cc
3 changed files with 90 additions and 76 deletions

View file

@ -118,15 +118,19 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
printLevelWizard.AddPage(new LastPage3PointInstructions("Done".Localize(), doneInstructions, probePositions));
}
public static string ProcesssCommand(string lineBeingSent)
public static List<string> ProcesssCommand(string lineBeingSent)
{
List<string> lines = new List<string>();
if (lineBeingSent.StartsWith("G28"))
{
PrinterConnectionAndCommunication.Instance.ReadPosition();
return lineBeingSent;
lines.Add("M114");
}
else
{
lines.Add(lineBeingSent);
}
return lineBeingSent;
return lines;
}
}
}