Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo fixes in string formatting #148

Open
wants to merge 1 commit into
base: no_toolhead_sensor
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Klipper_Files/Extra module/ercf.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def _servo_set_angle(self, angle):
# if we ever set the angle directly, we are in an unknown state
# the up/down functions will reset this properly
self.servo_state = self.SERVO_UNKNOWN_STATE
self.gcode.run_script_from_command("SET_SERVO SERVO=ercf_servo ANGLE=%1.f" % angle)
self.gcode.run_script_from_command("SET_SERVO SERVO=ercf_servo ANGLE=%.1f" % angle)

def _servo_off(self):
self.gcode.run_script_from_command("SET_SERVO SERVO=ercf_servo WIDTH=0.0")
Expand Down Expand Up @@ -736,7 +736,7 @@ def _unload_from_extruder(self):
self.toolhead.manual_move(pos, 20)
self.toolhead.wait_moves()
moved_length = self._counter.get_distance()
self._log_trace("Test extruder move of %1.fmm recorded %1.fmm at the extruder" % (self.encoder_move_step_size, moved_length))
self._log_trace("Test extruder move of %.1fmm recorded %.1fmm at the extruder" % (self.encoder_move_step_size, moved_length))
if (moved_length <= 1.):
out_of_extruder = True
break
Expand Down Expand Up @@ -961,7 +961,7 @@ def _load_to_end_of_bowden(self, length):
def _home_to_extruder(self, length, step):
self._servo_down()

self._log_debug("Homing to extruder with %1.fmm moves" % (step))
self._log_debug("Homing to extruder with %.1fmm moves" % (step))
self.gear_stepper.do_set_position(0.)
for i in range (int(length / step)):
pre_move_position = self._counter.get_distance()
Expand Down