diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2020-09-25 03:15:22 +1000 |
---|---|---|
committer | Jim Mussared <jim.mussared@gmail.com> | 2020-09-26 21:19:18 +1000 |
commit | 0fd0eb00aa5b9d311046d48d73a8cfabb30d7dd6 (patch) | |
tree | eeb0dd6087cdf96d3ceca7708d1b1a869824a032 /examples/bluetooth/ble_simple_peripheral.py | |
parent | 9123b67d641ba708a4ea3e5cd50665f0a73c6c8a (diff) |
examples/bluetooth: Update to use positional-only args to irq().
To match 6a6a5f9e151473bdcc1d14725d680691ff665a82.
Diffstat (limited to 'examples/bluetooth/ble_simple_peripheral.py')
-rw-r--r-- | examples/bluetooth/ble_simple_peripheral.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bluetooth/ble_simple_peripheral.py b/examples/bluetooth/ble_simple_peripheral.py index f5e766192..d2b134e71 100644 --- a/examples/bluetooth/ble_simple_peripheral.py +++ b/examples/bluetooth/ble_simple_peripheral.py @@ -31,7 +31,7 @@ class BLESimplePeripheral: def __init__(self, ble, name="mpy-uart"): self._ble = ble self._ble.active(True) - self._ble.irq(handler=self._irq) + self._ble.irq(self._irq) ((self._handle_tx, self._handle_rx),) = self._ble.gatts_register_services((_UART_SERVICE,)) self._connections = set() self._write_callback = None |