make fan percentages a float (#3087)

makes fan percentages an int.

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
Ev 2023-12-12 08:56:20 -05:00 committed by GitHub
parent 103d778e63
commit d75bac2f01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View file

@ -2702,7 +2702,7 @@ def = this->add("filament_loading_speed", coFloats);
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloats{ 0., 0. });
def = this->add("fan_max_speed", coInts);
def = this->add("fan_max_speed", coFloats);
def->label = L("Fan speed");
def->tooltip = L("Part cooling fan speed may be increased when auto cooling is enabled. "
"This is the maximum speed limitation of part cooling fan");
@ -2710,7 +2710,7 @@ def = this->add("filament_loading_speed", coFloats);
def->min = 0;
def->max = 100;
def->mode = comSimple;
def->set_default_value(new ConfigOptionInts { 100 });
def->set_default_value(new ConfigOptionFloats { 100 });
def = this->add("max_layer_height", coFloats);
def->label = L("Max");
@ -2753,14 +2753,14 @@ def = this->add("filament_loading_speed", coFloats);
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionInt(3));
def = this->add("fan_min_speed", coInts);
def = this->add("fan_min_speed", coFloats);
def->label = L("Fan speed");
def->tooltip = L("Minimum speed for part cooling fan");
def->sidetext = L("%");
def->min = 0;
def->max = 100;
def->mode = comSimple;
def->set_default_value(new ConfigOptionInts { 20 });
def->set_default_value(new ConfigOptionFloats { 20 });
def = this->add("additional_cooling_fan_speed", coInts);
def->label = L("Fan speed");