Allow steps per mm to be float

You could have 333.333 steps per mm, for instance. Not common, but it's possible.

Fixes #8889.
This commit is contained in:
Ghostkeeper 2020-12-08 14:14:14 +01:00
parent 000d7e90f5
commit bfe62514e2
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -652,7 +652,7 @@
{
"label": "Steps per Millimeter (X)",
"description": "How many steps of the stepper motor will result in one millimeter of movement in the X direction.",
"type": "int",
"type": "float",
"default_value": 50,
"minimum_value": "0.0000001",
"settable_per_mesh": false,
@ -662,7 +662,7 @@
{
"label": "Steps per Millimeter (Y)",
"description": "How many steps of the stepper motor will result in one millimeter of movement in the Y direction.",
"type": "int",
"type": "float",
"default_value": 50,
"minimum_value": "0.0000001",
"settable_per_mesh": false,
@ -672,7 +672,7 @@
{
"label": "Steps per Millimeter (Z)",
"description": "How many steps of the stepper motor will result in one millimeter of movement in the Z direction.",
"type": "int",
"type": "float",
"default_value": 50,
"minimum_value": "0.0000001",
"settable_per_mesh": false,
@ -682,7 +682,7 @@
{
"label": "Steps per Millimeter (E)",
"description": "How many steps of the stepper motors will result in one millimeter of extrusion.",
"type": "int",
"type": "float",
"default_value": 1600,
"minimum_value": "0.0000001",
"settable_per_mesh": false,