fix: allow userspace setting of Split.debug_enabled

This commit is contained in:
Josh Klar 2021-06-19 19:17:47 -07:00
parent 6d5b99d78d
commit 6f8eb425b1
No known key found for this signature in database
GPG Key ID: A4A0C7B4E8EEE222

View File

@ -35,6 +35,7 @@ class Split(Module):
data_pin2=None,
target_left=True,
uart_flip=True,
debug_enabled=False,
):
self._is_target = True
self._uart_buffer = []
@ -50,7 +51,7 @@ class Split(Module):
self._is_target = True
self._uart = None
self._uart_interval = uart_interval
self._debug_enabled = False
self._debug_enabled = debug_enabled
if self.split_type == SplitType.BLE:
try:
from adafruit_ble import BLERadio