Making it possible to set a bed surface and have settings for bed temperature / material

This commit is contained in:
Lars Brubaker 2022-01-17 11:33:22 -08:00
parent 2266428005
commit fa86c58a7c
18 changed files with 429 additions and 43 deletions

View file

@ -383,7 +383,9 @@ namespace MatterHackers.MatterControl.PrinterCommunication
}
}
if (stringEvent.Data == SettingsKey.bed_temperature)
if (stringEvent.Data == Printer.Settings.Helpers.ActiveBedTemperatureSetting
|| stringEvent.Data == SettingsKey.bed_temperature
|| stringEvent.Data == SettingsKey.bed_surface)
{
if (this.Printing
&& this.DetailedPrintingState == DetailedPrintingState.HeatingBed)
@ -394,7 +396,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication
double goalTemp = this.TargetBedTemperature;
if (goalTemp > 0)
{
var newGoal = printer.Settings.GetValue<double>(SettingsKey.bed_temperature);
var newGoal = printer.Settings.Helpers.ActiveBedTemperature;
this.TargetBedTemperature = newGoal;
}
}