ENH: [STUDIO-2450] Update the bed type to be consistent with the gcode

Change-Id: Ic69face644bc193e7125535697905c35ba210058
This commit is contained in:
maosheng.wei 2023-05-19 18:30:42 +08:00 committed by Lane.Wei
parent 2718eafb5a
commit eb3a97f55b
3 changed files with 17 additions and 3 deletions

View file

@ -1218,6 +1218,11 @@ void GCodeProcessor::apply_config(const DynamicPrintConfig& config)
const ConfigOptionBool* spiral_vase = config.option<ConfigOptionBool>("spiral_mode");
if (spiral_vase != nullptr)
m_spiral_vase_active = spiral_vase->value;
const ConfigOptionEnumGeneric *bed_type = config.option<ConfigOptionEnumGeneric>("curr_bed_type");
if (bed_type != nullptr)
m_result.bed_type = (BedType)bed_type->value;
}
void GCodeProcessor::enable_stealth_time_estimator(bool enabled)