Change layer time to float

This commit is contained in:
SoftFever 2022-11-05 00:33:07 +08:00
parent 78b9fcb71b
commit 0008668fa5
2 changed files with 6 additions and 6 deletions

View file

@ -1105,7 +1105,7 @@ void PrintConfigDef::init_fff_params()
"at minimum speed to reduce the frequency of starting and stoping");
def->set_default_value(new ConfigOptionBools { false });
def = this->add("fan_cooling_layer_time", coInts);
def = this->add("fan_cooling_layer_time", coFloats);
def->label = L("Layer time");
def->tooltip = L("Part cooling fan will be enabled for layers of which estimated time is shorter than this value. "
"Fan speed is interpolated between the minimum and maximum fan speeds according to layer printing time");
@ -1113,7 +1113,7 @@ void PrintConfigDef::init_fff_params()
def->min = 0;
def->max = 1000;
def->mode = comSimple;
def->set_default_value(new ConfigOptionInts { 60 });
def->set_default_value(new ConfigOptionFloats{ 60.0f });
def = this->add("filament_colour", coStrings);
def->label = L("Color");
@ -2279,7 +2279,7 @@ void PrintConfigDef::init_fff_params()
def->mode = comSimple;
def->set_default_value(new ConfigOptionInt(1));
def = this->add("slow_down_layer_time", coInts);
def = this->add("slow_down_layer_time", coFloats);
def->label = L("Layer time");
def->tooltip = L("The printing speed in exported gcode will be slowed down, when the estimated layer time is shorter than this value, to "
"get better cooling for these layers");
@ -2287,7 +2287,7 @@ void PrintConfigDef::init_fff_params()
def->min = 0;
def->max = 1000;
def->mode = comSimple;
def->set_default_value(new ConfigOptionInts { 5 });
def->set_default_value(new ConfigOptionFloats { 5.0f });
def = this->add("minimum_sparse_infill_area", coFloat);
def->label = L("Minimum sparse infill threshold");

View file

@ -844,7 +844,7 @@ PRINT_CONFIG_CLASS_DERIVED_DEFINE(
((ConfigOptionStrings, extruder_colour))
((ConfigOptionPoints, extruder_offset))
((ConfigOptionBools, reduce_fan_stop_start_freq))
((ConfigOptionInts, fan_cooling_layer_time))
((ConfigOptionFloats, fan_cooling_layer_time))
((ConfigOptionStrings, filament_colour))
((ConfigOptionFloat, outer_wall_acceleration))
((ConfigOptionFloat, inner_wall_acceleration))
@ -883,7 +883,7 @@ PRINT_CONFIG_CLASS_DERIVED_DEFINE(
((ConfigOptionFloat, skirt_distance))
((ConfigOptionInt, skirt_height))
((ConfigOptionInt, skirt_loops))
((ConfigOptionInts, slow_down_layer_time))
((ConfigOptionFloats, slow_down_layer_time))
((ConfigOptionBool, spiral_mode))
((ConfigOptionInt, standby_temperature_delta))
((ConfigOptionInts, nozzle_temperature))