Increase the maximum warning for speed_slowdown_layers

Also round the resolved value, because the result needs to be an integer.

Contributes to issue CURA-3960.
This commit is contained in:
Ghostkeeper 2017-06-27 11:01:03 +02:00
parent d30c598977
commit cb4e58c6f7
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -2046,9 +2046,9 @@
"description": "The first few layers are printed slower than the rest of the model, to get better adhesion to the build plate and improve the overall success rate of prints. The speed is gradually increased over these layers.",
"type": "int",
"default_value": 2,
"resolve": "sum(extruderValues('speed_slowdown_layers')) / len(extruderValues('speed_slowdown_layers'))",
"resolve": "round(sum(extruderValues('speed_slowdown_layers')) / len(extruderValues('speed_slowdown_layers')))",
"minimum_value": "0",
"maximum_value_warning": "1.0 / resolveOrValue('layer_height')",
"maximum_value_warning": "3.0 / resolveOrValue('layer_height')",
"settable_per_mesh": false,
"settable_per_extruder": false
},