Skip to content

Commit

Permalink
Extras: fix resonance_tester override logic
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Dec 27, 2024
1 parent e101592 commit af59bb3
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 @@ -88,7 +88,7 @@ def register_override(self, command, func, desc):

prev_cmd = self.gcode.register_command(command, None)
if prev_cmd is None:
if command == 'TEST_RESONANCES' or command == 'SHAPER_CALIBRATE' and not self.config.has_section('resonance_tester'):
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
Expand Down

0 comments on commit af59bb3

Please sign in to comment.