Getting switch extruder pre-gcode to run when needed
refactoring
This commit is contained in:
parent
8eefd9c059
commit
572fdd847a
17 changed files with 74 additions and 51 deletions
|
|
@ -358,7 +358,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
|
|||
public DoneLoadingPage(PrinterSetupWizard setupWizard, int extruderIndex)
|
||||
: base(setupWizard, "Success".Localize(), "Success!\n\nYour filament should now be loaded".Localize())
|
||||
{
|
||||
if (printer.Connection.PrinterIsPaused)
|
||||
if (printer.Connection.Paused)
|
||||
{
|
||||
var resumePrintingButton = new TextButton("Resume Printing".Localize(), theme)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -253,6 +253,9 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
|
|||
else if (i == 1)
|
||||
{
|
||||
// store the offset into the extruder offset z position
|
||||
var extruder1Offset = printer.Settings.Helpers.ExtruderOffset(1);
|
||||
//var newZOffset = extruder1Offset.Z
|
||||
double newProbeOffset = autoProbePositions[0].position.Z - manualProbePositions[0].position.Z;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -155,8 +155,8 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
|
|||
NextButton.Enabled = false;
|
||||
|
||||
if (printer.Connection.IsConnected
|
||||
&& !(printer.Connection.PrinterIsPrinting
|
||||
|| printer.Connection.PrinterIsPaused))
|
||||
&& !(printer.Connection.Printing
|
||||
|| printer.Connection.Paused))
|
||||
{
|
||||
printer.Connection.LineReceived += GetZProbeHeight;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue