Skip to content

Commit

Permalink
Extras: check func is the same, and not command.. sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Dec 18, 2024
1 parent 993bf07 commit b455b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configuration/klippy/ratos.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def register_command_overrides(self):

def register_override(self, command, func, desc):
if self.overridden_commands[command] is not None:
if self.overridden_commands[command] != command:
if self.overridden_commands[command] != func:
raise self.printer.config_error("Command '%s' is already overridden with a different function" % (command,))
return

Expand Down

0 comments on commit b455b76

Please sign in to comment.