ENH: add upward_compatible_machine to preset

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I489f3cc7f9fbd0de79861b71c47494b377ef1a16
This commit is contained in:
qing.zhang 2022-11-30 18:03:06 +08:00 committed by Lane.Wei
parent 01c059c358
commit fe4fc04eb8
12 changed files with 47 additions and 11 deletions

View file

@ -787,7 +787,7 @@ static std::vector<std::string> s_Preset_printer_options {
"silent_mode",
// BBS
"scan_first_layer", "machine_load_filament_time", "machine_unload_filament_time", "machine_pause_gcode", "template_custom_gcode",
"nozzle_type", "nozzle_hrc","auxiliary_fan", "nozzle_volume",
"nozzle_type", "nozzle_hrc","auxiliary_fan", "nozzle_volume","upward_compatible_machine",
//SoftFever
"host_type", "print_host", "printhost_apikey",
"printhost_cafile","printhost_port","printhost_authorization_type",

View file

@ -137,7 +137,8 @@ bool Print::invalidate_state_by_config_options(const ConfigOptionResolver & /* n
"curr_bed_type",
"nozzle_volume",
"nozzle_hrc",
"required_nozzle_HRC"
"required_nozzle_HRC",
"upward_compatible_machine"
};
static std::unordered_set<std::string> steps_ignore;

View file

@ -778,6 +778,13 @@ void PrintConfigDef::init_fff_params()
def->set_default_value(new ConfigOptionStrings());
def->cli = ConfigOptionDef::nocli;
//BBS.
def = this->add("upward_compatible_machine", coStrings);
def->label = L("upward compatible machine");
def->mode = comDevelop;
def->set_default_value(new ConfigOptionStrings());
def->cli = ConfigOptionDef::nocli;
def = this->add("compatible_printers_condition", coString);
def->label = L("Compatible machine condition");
//def->tooltip = L("A boolean expression using the configuration values of an active printer profile. "