Skip to content

Commit

Permalink
Update led.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeanon committed Nov 9, 2023
1 parent 4d908de commit dc8a434
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion klippy/extras/led.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def get_led_count(self):
def set_color(self, index, color):
if self.led_state[index - 1] == color:
return
self.led_state[index - 1] = color
new_led_state = list(self.led_state)
new_led_state[index - 1] = color
self.led_state = new_led_state
self.need_transmit = True
def check_transmit(self, print_time):
if not self.need_transmit:
Expand Down

0 comments on commit dc8a434

Please sign in to comment.