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

Change-Id: Ic69face644bc193e7125535697905c35ba210058
This commit is contained in:
maosheng.wei authored and Lane.Wei committed 2023-07-07 17:25:51 +08:00
1 parent 2718eafb5a
commit eb3a97f55b
3 files changed
+17 -3

No files matched your search

+5
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)