We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eab57ad commit 4b2e0bcCopy full SHA for 4b2e0bc
adafruit_ble/hci.py
@@ -44,6 +44,7 @@ def esp32_hci_init(
44
):
45
"""Do ESP32-specific HCI adapter initialization."""
46
47
+ # pylint: disable=too-many-locals
48
reset = digitalio.DigitalInOut(esp_reset)
49
reset.switch_to_output(not reset_high)
50
@@ -83,8 +84,8 @@ def esp32_hci_init(
83
84
if debug:
85
try:
86
print(startup_message.decode("utf-8"))
- except UnicodeError:
87
- raise _bleio.BluetoothError("Garbled HCI startup message")
+ except UnicodeError as exc:
88
+ raise _bleio.BluetoothError("Garbled HCI startup message") from exc
89
90
# pylint: disable=no-member
91
_bleio.adapter.hci_uart_init(uart=uart, rts=gpio0_and_rts, cts=cts)
0 commit comments