Skip to content

Commit

Permalink
Option ignore_led_errors for FAST EXP boards
Browse files Browse the repository at this point in the history
  • Loading branch information
avanwinkle committed Jul 26, 2024
1 parent 9079562 commit 35a84ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions mpf/config_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ fast_exp_board:
led_ports: list|subconfig(fast_led_port)|None
led_fade_time: single|ms|0
led_hz: single|float|30
ignore_led_errors: single|bool|false
fast_breakout:
port: single|enum(1,2,3)|
model: single|str|
Expand Down
5 changes: 3 additions & 2 deletions mpf/platforms/fast/fast_exp_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ def update_leds(self):
except Exception as e:
self.log.error(
f"Error decoding the following message for board {breakout_address} : {msg_header}{msg}")
self.log.debug("Attempted update that caused this error: %s", dirty_leds)
raise e
self.log.info("Attempted update that caused this error: %s", dirty_leds)
if not self.config['ignore_led_errors']:
raise e

def set_led_fade(self, rate: int) -> None:
"""Set LED fade rate in ms."""
Expand Down

0 comments on commit 35a84ba

Please sign in to comment.