From d464fecb0a94ff41bc6d2aed1420f92729e92542 Mon Sep 17 00:00:00 2001 From: jseriff Date: Sat, 3 Sep 2022 22:57:41 -0500 Subject: [PATCH] Typo fixes in string formatting --- Klipper_Files/Extra module/ercf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Klipper_Files/Extra module/ercf.py b/Klipper_Files/Extra module/ercf.py index 3c848011..950110df 100644 --- a/Klipper_Files/Extra module/ercf.py +++ b/Klipper_Files/Extra module/ercf.py @@ -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") @@ -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 @@ -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()