tmc: Fix number of arguments in phase endstop warning (#5184)

Signed-off-by: Konstantin Vogel <konstantin.vogel@gmx.net>
This commit is contained in:
D4SK 2022-01-23 02:41:44 +01:00 committed by GitHub
parent f97fd7c6e3
commit 2f1edac922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ class TMCCommandHelper:
moff = (phase - stepper.get_mcu_position()) % phases moff = (phase - stepper.get_mcu_position()) % phases
if self.mcu_phase_offset is not None and self.mcu_phase_offset != moff: if self.mcu_phase_offset is not None and self.mcu_phase_offset != moff:
logging.warning("Stepper %s phase change (was %d now %d)", logging.warning("Stepper %s phase change (was %d now %d)",
self.mcu_phase_offset, moff) self.stepper_name, self.mcu_phase_offset, moff)
self.mcu_phase_offset = moff self.mcu_phase_offset = moff
# Stepper enable/disable tracking # Stepper enable/disable tracking
def _do_enable(self, print_time): def _do_enable(self, print_time):