If the printer homes down make sure we don't stay there before heating when running calibration

issue: MatterHackers/MCCentral#4078
[Calibration Wizards] Printers that home to Z min should move up after homing
This commit is contained in:
LarsBrubaker 2018-09-02 11:51:32 -07:00
parent 85452b7c95
commit ce86ca15e0

View file

@ -30,6 +30,7 @@ either expressed or implied, of the FreeBSD Project.
using System;
using MatterHackers.Agg.UI;
using MatterHackers.MatterControl.PrinterCommunication;
using MatterHackers.MatterControl.SlicerConfiguration;
namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
{
@ -59,6 +60,12 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
printer.Connection.HomeAxis(PrinterConnection.Axis.XYZ);
if(!printer.Settings.GetValue<bool>(SettingsKey.z_homes_to_max))
{
// move so we don't heat the printer while the nozzle is touching the bed
printer.Connection.MoveAbsolute(PrinterConnection.Axis.Z, 10, printer.Settings.Helpers.ManualMovementSpeeds().Z);
}
if (autoAdvance)
{
nextButton.Enabled = false;