FIX: display the minimum flush data

1. Use the minimum flush between nozzle volume and flush in datalist
2. Add a new param to decide the datalist to use

github:7445

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Id87c98ca5069e7b328974d641d7a81dfbf9c50a0
(cherry picked from commit 2be29b784727330732170b5c2ff0ba9d5e79d82f)
This commit is contained in:
xun.zhang 2025-07-03 17:14:34 +08:00 committed by Noisyfox
parent cf9a38bbc6
commit bc02e48dc0
13 changed files with 69 additions and 65 deletions

View file

@ -2277,6 +2277,10 @@ void PrintConfigDef::init_fff_params()
def->enum_labels.push_back(L("By Highest Temp"));
def->set_default_value(new ConfigOptionEnum<BedTempFormula>(BedTempFormula::btfFirstFilament));
def = this->add("nozzle_flush_dataset", coInts);
def->nullable = true;
def->set_default_value(new ConfigOptionIntsNullable{0});
def = this->add("filament_diameter", coFloats);
def->label = L("Diameter");
def->tooltip = L("Filament diameter is used to calculate extrusion in G-code, so it is important and should be accurate.");
@ -7535,7 +7539,8 @@ std::set<std::string> printer_options_with_variant_1 = {
"nozzle_volume",
"nozzle_type",
"printer_extruder_id",
"printer_extruder_variant"
"printer_extruder_variant",
"nozzle_flush_dataset"
};
//options with silient mode