Delete dead code
This commit is contained in:
parent
503996759c
commit
f516520ee4
1 changed files with 0 additions and 30 deletions
|
|
@ -74,36 +74,6 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
public bool DebugMode { get; private set; } = false;
|
||||
|
||||
public Task PrintTemplate(bool verticalLayout)
|
||||
{
|
||||
return Task.Run(async ()=>
|
||||
{
|
||||
string gcode = this.BuildTemplate(verticalLayout);
|
||||
|
||||
string outputPath = Path.Combine(
|
||||
ApplicationDataStorage.Instance.GCodeOutputPath,
|
||||
$"nozzle-offset-template{ (verticalLayout ? 1 : 2) }.gcode");
|
||||
|
||||
File.WriteAllText(outputPath, gcode);
|
||||
|
||||
// HACK: update state needed to be set before calling StartPrint
|
||||
printer.Connection.CommunicationState = CommunicationStates.PreparingToPrint;
|
||||
|
||||
await printer.Connection.StartPrint(outputPath);
|
||||
|
||||
// Wait for print start
|
||||
while (!printer.Connection.PrintIsActive)
|
||||
{
|
||||
Thread.Sleep(500);
|
||||
}
|
||||
|
||||
// Wait for print finished
|
||||
while (printer.Connection.PrintIsActive)
|
||||
{
|
||||
Thread.Sleep(500);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void BuildTemplate(GCodeSketch gcodeSketch, bool verticalLayout)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue