Ignore "Start Print" on empty bed

- Issue MatterHackers/MCCentral#3442
Clicking Print button with empty bed results in empty gcode, disabled print button
This commit is contained in:
John Lewin 2018-05-24 22:46:34 -07:00
parent 2cda757ee8
commit 25c76d0282
2 changed files with 7 additions and 2 deletions

View file

@ -71,12 +71,12 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
}
// check that the bed temperature at probe time was close enough to the current print bed temp
double reqiredLevlingTemp = printer.Settings.GetValue<bool>(SettingsKey.has_heated_bed) ?
double requiredLevelingTemp = printer.Settings.GetValue<bool>(SettingsKey.has_heated_bed) ?
printer.Settings.GetValue<double>(SettingsKey.bed_temperature)
: 0;
// check that it is within 10 degrees
if(Math.Abs(reqiredLevlingTemp - levelingData.BedTemperature) > 10)
if(Math.Abs(requiredLevelingTemp - levelingData.BedTemperature) > 10)
{
return true;
}