diff --git a/configuration/klippy/ratos.py b/configuration/klippy/ratos.py index 59669f5ab..69f0efe8c 100644 --- a/configuration/klippy/ratos.py +++ b/configuration/klippy/ratos.py @@ -88,7 +88,12 @@ def register_override(self, command, func, desc): prev_cmd = self.gcode.register_command(command, None) if prev_cmd is None: - raise self.printer.config_error("Existing command '%s' not found in RatOS override" % (command,)) + if command == 'TEST_RESONANCES' or command == 'SHAPER_CALIBRATE' and not self.config.has_section('resonance_tester'): + # No [resonance_tester] section found, don't throw an error, skip overriding. + logging.info("No [resonance_tester] section found, skipping override of command '%s'" % (command,)) + return + else: + raise self.printer.config_error("Existing command '%s' not found in RatOS override" % (command,)) if command not in self.overridden_commands: raise self.printer.config_error("Command '%s' not found in RatOS override list" % (command,))