Moved the print leveling code out of PrinterCommunication into ActviePrinterProfile
This commit is contained in:
parent
ecabfa08b5
commit
019eb3165b
9 changed files with 84 additions and 85 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue