Working to get the gcode export with leveling working with 2point leveling.
This commit is contained in:
parent
95a703d371
commit
8bd225b7cc
3 changed files with 90 additions and 76 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue