Fix spelling

This commit is contained in:
John Lewin 2018-04-04 15:58:57 -07:00
parent 96852ef3b4
commit ac3982c9d5
16 changed files with 44 additions and 44 deletions

View file

@ -44,12 +44,12 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
: base(internalStream)
{
// always reset this when we construct
AlowLeveling = true;
AllowLeveling = true;
this.printerSettings = printerSettings;
this.activePrinting = activePrinting;
}
public static bool AlowLeveling { get; set; }
public static bool AllowLeveling { get; set; }
public PrinterMove LastDestination { get { return lastDestination; } }
@ -57,7 +57,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
{
get
{
return AlowLeveling
return AllowLeveling
&& printerSettings.GetValue<bool>(SettingsKey.print_leveling_enabled)
&& !printerSettings.GetValue<bool>(SettingsKey.has_hardware_leveling);
}

View file

@ -118,7 +118,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
// remove it from the part
case RecoveryState.Raising:
// We don't know where the printer is for sure (it make have been turned off). Disable leveling until we know where it is.
PrintLevelingStream.AlowLeveling = false;
PrintLevelingStream.AllowLeveling = false;
queuedCommands.Add("M114 ; get current position");
queuedCommands.Add("G91 ; move relative");
queuedCommands.Add("G1 Z10 F{0}".FormatWith(printer.Settings.ZSpeed()));
@ -145,7 +145,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
queuedCommands.Add("G28 Z0");
}
// We now know where the printer is re-enable print leveling
PrintLevelingStream.AlowLeveling = true;
PrintLevelingStream.AllowLeveling = true;
RecoveryState = RecoveryState.FindingRecoveryLayer;
return "";