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:
parent
2cda757ee8
commit
25c76d0282
2 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue