Skip to content

Commit

Permalink
examples/bluetooth: Update to use positional-only args to irq().
Browse files Browse the repository at this point in the history
To match 6a6a5f9e151473bdcc1d14725d680691ff665a82.
  • Loading branch information
jimmo authored and pfalcon committed Oct 26, 2020
1 parent a4c397c commit 234b8b4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/bluetooth/ble_simple_central.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class BLESimpleCentral:
def __init__(self, ble):
self._ble = ble
self._ble.active(True)
self._ble.irq(handler=self._irq)
self._ble.irq(self._irq)

self._reset()

Expand Down
2 changes: 1 addition & 1 deletion examples/bluetooth/ble_simple_peripheral.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/bluetooth/ble_temperature.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class BLETemperature:
def __init__(self, ble, name="mpy-temp"):
self._ble = ble
self._ble.active(True)
self._ble.irq(handler=self._irq)
self._ble.irq(self._irq)
((self._handle,),) = self._ble.gatts_register_services((_ENV_SENSE_SERVICE,))
self._connections = set()
self._payload = advertising_payload(
Expand Down
2 changes: 1 addition & 1 deletion examples/bluetooth/ble_temperature_central.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class BLETemperatureCentral:
def __init__(self, ble):
self._ble = ble
self._ble.active(True)
self._ble.irq(handler=self._irq)
self._ble.irq(self._irq)

self._reset()

Expand Down
2 changes: 1 addition & 1 deletion examples/bluetooth/ble_uart_peripheral.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 234b8b4

Please sign in to comment.