Skip to content

Commit

Permalink
Klippy: read vaoc_led vars as float and not int
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Sep 10, 2024
1 parent 50d8604 commit d84902c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions klippy/vaoc_led.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def __init__(self, config):
self.neopixel_update_cmd = self.neopixel_send_cmd = None
# Build color map
chain_count = config.getint('chain_count', 1, minval=1)
self.bit_max_time = config.getint('bit_max_time', BIT_MAX_TIME)
self.reset_min_time = config.getint('reset_min_time', RESET_MIN_TIME)
self.bit_max_time = config.getfloat('bit_max_time', BIT_MAX_TIME, above=0.)
self.reset_min_time = config.getfloat('reset_min_time', RESET_MIN_TIME, above=0.)
color_order = config.getlist("color_order", ["GRB"])
if len(color_order) == 1:
color_order = [color_order[0]] * chain_count
Expand Down

0 comments on commit d84902c

Please sign in to comment.