From b455b76660c8d5cbc5933fe34270cdda07c4fc46 Mon Sep 17 00:00:00 2001 From: Mikkel Schmidt Date: Thu, 19 Dec 2024 00:51:46 +0100 Subject: [PATCH] Extras: check func is the same, and not command.. sigh --- configuration/klippy/ratos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/klippy/ratos.py b/configuration/klippy/ratos.py index b429510d..6d016e08 100644 --- a/configuration/klippy/ratos.py +++ b/configuration/klippy/ratos.py @@ -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