From 1cad63c0bcf63b12436a1438aa8512cd05ad4da0 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Tue, 19 May 2020 16:00:23 +1000 Subject: extmod/modbluetooth: Ensure status=0 always on success. This commit makes sure that all discovery complete and read/write status events set the status to zero on success. The status value will be implementation-dependent on non-success cases. --- examples/bluetooth/ble_temperature_central.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/bluetooth/ble_temperature_central.py b/examples/bluetooth/ble_temperature_central.py index 619578462..1ce99728b 100644 --- a/examples/bluetooth/ble_temperature_central.py +++ b/examples/bluetooth/ble_temperature_central.py @@ -162,7 +162,7 @@ class BLETemperatureCentral: self._read_callback = None elif event == _IRQ_GATTC_READ_DONE: - # Read completed. + # Read completed (no-op). conn_handle, value_handle, status = data elif event == _IRQ_GATTC_NOTIFY: -- cgit v1.2.3