summaryrefslogtreecommitdiff
path: root/examples/bluetooth/ble_uart_peripheral.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/ble_uart_peripheral.py')
-rw-r--r--examples/bluetooth/ble_uart_peripheral.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bluetooth/ble_uart_peripheral.py b/examples/bluetooth/ble_uart_peripheral.py
index 59b35f7e6..6d167a871 100644
--- a/examples/bluetooth/ble_uart_peripheral.py
+++ b/examples/bluetooth/ble_uart_peripheral.py
@@ -31,7 +31,7 @@ class BLEUART:
def __init__(self, ble, name="mpy-uart", rxbuf=100):
self._ble = ble
self._ble.active(True)
- self._ble.irq(handler=self._irq)
+ self._ble.irq(self._irq)
((self._tx_handle, self._rx_handle),) = self._ble.gatts_register_services((_UART_SERVICE,))
# Increase the size of the rx buffer and enable append mode.
self._ble.gatts_set_buffer(self._rx_handle, rxbuf, True)