summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2020-09-25 03:15:22 +1000
committerJim Mussared <jim.mussared@gmail.com>2020-09-26 21:19:18 +1000
commit0fd0eb00aa5b9d311046d48d73a8cfabb30d7dd6 (patch)
treeeeb0dd6087cdf96d3ceca7708d1b1a869824a032
parent9123b67d641ba708a4ea3e5cd50665f0a73c6c8a (diff)
downloadmicropython-0fd0eb00aa5b9d311046d48d73a8cfabb30d7dd6.tar.gz
micropython-0fd0eb00aa5b9d311046d48d73a8cfabb30d7dd6.zip
examples/bluetooth: Update to use positional-only args to irq().
To match 6a6a5f9e151473bdcc1d14725d680691ff665a82.
-rw-r--r--examples/bluetooth/ble_simple_central.py2
-rw-r--r--examples/bluetooth/ble_simple_peripheral.py2
-rw-r--r--examples/bluetooth/ble_temperature.py2
-rw-r--r--examples/bluetooth/ble_temperature_central.py2
-rw-r--r--examples/bluetooth/ble_uart_peripheral.py2
5 files changed, 5 insertions, 5 deletions
diff --git a/examples/bluetooth/ble_simple_central.py b/examples/bluetooth/ble_simple_central.py
index f0a3297d32..a6bbdc6ee0 100644
--- a/examples/bluetooth/ble_simple_central.py
+++ b/examples/bluetooth/ble_simple_central.py
@@ -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()
diff --git a/examples/bluetooth/ble_simple_peripheral.py b/examples/bluetooth/ble_simple_peripheral.py
index f5e7661926..d2b134e714 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
diff --git a/examples/bluetooth/ble_temperature.py b/examples/bluetooth/ble_temperature.py
index 001a26b114..d375a62ffb 100644
--- a/examples/bluetooth/ble_temperature.py
+++ b/examples/bluetooth/ble_temperature.py
@@ -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(
diff --git a/examples/bluetooth/ble_temperature_central.py b/examples/bluetooth/ble_temperature_central.py
index 7983034178..96c4aad144 100644
--- a/examples/bluetooth/ble_temperature_central.py
+++ b/examples/bluetooth/ble_temperature_central.py
@@ -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()
diff --git a/examples/bluetooth/ble_uart_peripheral.py b/examples/bluetooth/ble_uart_peripheral.py
index 59b35f7e6a..6d167a871a 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)