From 0fd0eb00aa5b9d311046d48d73a8cfabb30d7dd6 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Fri, 25 Sep 2020 03:15:22 +1000 Subject: [PATCH] examples/bluetooth: Update to use positional-only args to irq(). To match 6a6a5f9e151473bdcc1d14725d680691ff665a82. --- examples/bluetooth/ble_simple_central.py | 2 +- examples/bluetooth/ble_simple_peripheral.py | 2 +- examples/bluetooth/ble_temperature.py | 2 +- examples/bluetooth/ble_temperature_central.py | 2 +- examples/bluetooth/ble_uart_peripheral.py | 2 +- 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)