Skip to content

Commit

Permalink
Fix telemetry commands being available when they shouldnt
Browse files Browse the repository at this point in the history
Telemetry commands were available while klipper wasnt ready, which should not be since they call for SAVE_CONFIG which is not available in that state
  • Loading branch information
Zeanon committed Jan 2, 2025
1 parent 4089c35 commit b4045d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions klippy/extras/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ def __init__(self, config):

if self.enabled is not True:
gcode.register_command(
"ENABLE_TELEMETRY", self.cmd_ENABLE_TELEMETRY, True
"ENABLE_TELEMETRY", self.cmd_ENABLE_TELEMETRY
)

if self.enabled is not False:
gcode.register_command(
"DISABLE_TELEMETRY", self.cmd_DISABLE_TELEMETRY, True
"DISABLE_TELEMETRY", self.cmd_DISABLE_TELEMETRY
)

if self.enabled is None:
Expand Down

0 comments on commit b4045d7

Please sign in to comment.