Skip to content

Commit

Permalink
fix for led
Browse files Browse the repository at this point in the history
  • Loading branch information
moggieuk committed Dec 21, 2023
1 parent 9896b10 commit 78a3eb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extras/mmu.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,10 @@ def handle_ready(self):
self._log_error('Error trying to wrap PAUSE/RESUME/CLEAR_PAUSE/CANCEL_PRINT macros: %s' % str(e))

# Ensure that the control macro knows the index of the first LED in the strip
self.gcode.run_script_from_command("SET_GCODE_VARIABLE MACRO=_MMU_SET_LED VARIABLE=first_led_index VALUE=%d" % MmuLedEffect.first_led_index)
first = MmuLedEffect.first_led_index
if not first:
first = 1
self.gcode.run_script_from_command("SET_GCODE_VARIABLE MACRO=_MMU_SET_LED VARIABLE=first_led_index VALUE=%d" % first)

self.estimated_print_time = self.printer.lookup_object('mcu').estimated_print_time
self.last_selector_move_time = self.estimated_print_time(self.reactor.monotonic())
Expand Down

0 comments on commit 78a3eb3

Please sign in to comment.