Skip to content

Commit

Permalink
New fill density is a percentage
Browse files Browse the repository at this point in the history
Also, accept print_speed for print speed
  • Loading branch information
markwal committed Jan 21, 2023
1 parent 25c0f67 commit f508ee1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion octoprint_polarcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1421,6 +1421,7 @@ def readline(self):
"layerthickness": ("layer_height", mm_from_um),
"layer_height": ("layer_height", no_translation),
"printspeed": ("print_speed", no_translation),
"print_speed": ("print_speed", no_translation),
"perimeter_speed": ("print_speed", no_translation),
"supporttype": ("support_type", lambda x: "lines" if x == 0 else "grid"),
"support_material": ("support", lambda x: "None" if x == 0 else "Touching Buildplate"),
Expand Down Expand Up @@ -1464,7 +1465,7 @@ def readline(self):
"spiralizemode": ("spiralize", bool_from_int),
"spiral_vase": ("spiralize", bool_from_int),
"sparseinfilllinedistance": ("fill_density", lambda x: 100.0 * extrusion_width / mm_from_um(x)),
"fill_density": ("fill_density", lambda x: 100.0 * extrusion_width / x),
"fill_density": ("fill_density", no_translation),
"multivolumeoverlap": ("overlap_dual", mm_from_um),
"enableoozeshield": ("ooze_shield", bool_from_int),
"ooze_prevention": ("ooze_shield", bool_from_int),
Expand Down

0 comments on commit f508ee1

Please sign in to comment.