changes from black

This commit is contained in:
Patrick McQuay 2022-01-19 06:53:40 -05:00 committed by Kyle Brown
parent be2bbce21a
commit fa0062326b

View File

@ -92,7 +92,10 @@ class Split(Module):
self._is_target = not bool(self.split_target_left)
else:
# Detect split side from name
if self.split_type == SplitType.UART or self.split_type == SplitType.ONEWIRE:
if (
self.split_type == SplitType.UART
or self.split_type == SplitType.ONEWIRE
):
self._is_target = runtime.usb_connected
elif self.split_type == SplitType.BLE:
self._is_target = bool(self.split_target_left)