Make sure we can send a home

This commit is contained in:
larsbrubaker 2014-06-17 09:52:13 -07:00
parent 660aa71b8f
commit 6495c5dc7a

View file

@ -126,14 +126,11 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
lineBeingSent = lineBeingSent.Substring(0, commentIndex).Trim();
}
List<string> lines = new List<string>();
lines.Add(lineBeingSent);
if (lineBeingSent.StartsWith("G28"))
{
lines.Add("M114");
}
else
{
lines.Add(lineBeingSent);
}
return lines;
}