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

@ -1,7 +1,7 @@
{
"name": "Bambulab",
"url": "http://www.bambulab.com/Parameters/vendor/BBL.json",
"version": "01.04.00.12",
"version": "01.04.00.13",
"force_update": "0",
"description": "the initial version of BBL configurations",
"machine_model_list": [

File diff suppressed because one or more lines are too long

View File

@ -30,5 +30,9 @@
"machine_unload_filament_time": "16",
"nozzle_type": "stainless_steel",
"nozzle_hrc": "20",
"auxiliary_fan": "0"
"auxiliary_fan": "0",
"upward_compatible_machine":[
"Bambu Lab X1 0.4 nozzle",
"Bambu Lab X1 Carbon 0.4 nozzle"
]
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -34,5 +34,8 @@
"machine_unload_filament_time": "16",
"nozzle_type": "stainless_steel",
"nozzle_hrc": "20",
"auxiliary_fan": "0"
"auxiliary_fan": "0",
"upward_compatible_machine":[
"Bambu Lab X1 Carbon 0.4 nozzle"
]
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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. "