Moved the print leveling code out of PrinterCommunication into ActviePrinterProfile

This commit is contained in:
larsbrubaker 2014-02-14 12:50:55 -08:00
parent ecabfa08b5
commit 019eb3165b
9 changed files with 84 additions and 85 deletions

View file

@ -147,7 +147,7 @@ namespace MatterHackers.MatterControl.PrintQueue
string outputFileName = Path.ChangeExtension(originalFileName, ".gcode");
string outputPathAndName = Path.Combine(exportPath, outputFileName);
if (PrinterCommunication.Instance.DoPrintLeveling)
if (ActivePrinterProfile.Instance.DoPrintLeveling)
{
GCodeFile unleveledGCode = new GCodeFile(savedGcodeFileName);
PrintLeveling.Instance.ApplyLeveling(unleveledGCode);

View file

@ -143,7 +143,7 @@ namespace MatterHackers.MatterControl.PrintQueue
throw new NotImplementedException();
//string outputPathAndName = Path.Combine(exportPath, outputFileName);
if (PrinterCommunication.Instance.DoPrintLeveling)
if (ActivePrinterProfile.Instance.DoPrintLeveling)
{
GCodeFile unleveledGCode = new GCodeFile(savedGcodeFileName);
PrintLeveling.Instance.ApplyLeveling(unleveledGCode);