Skip to content

Commit

Permalink
hotfix for loading gcode_macro object
Browse files Browse the repository at this point in the history
  • Loading branch information
julianschill committed May 20, 2024
1 parent 83b77ca commit b304a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/led_effect.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def __init__(self, config):
self.config = config
self.printer = config.get_printer()
self.gcode = self.printer.lookup_object('gcode')
self.gcode_macro = self.printer.lookup_object('gcode_macro')
self.gcode_macro = self.printer.load_object(config, 'gcode_macro')
self.handler = self.printer.load_object(config, 'led_effect')
self.frameRate = 1.0 / config.getfloat('frame_rate',
default=24, minval=1, maxval=60)
Expand Down

0 comments on commit b304a74

Please sign in to comment.