summaryrefslogtreecommitdiff
path: root/examples/bluetooth/ble_temperature_central.py
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2020-05-19 16:00:23 +1000
committerDamien George <damien.p.george@gmail.com>2020-06-05 14:11:04 +1000
commit1cad63c0bcf63b12436a1438aa8512cd05ad4da0 (patch)
tree1f899dd20d44b0e28b5c4c32e937c09c370820c9 /examples/bluetooth/ble_temperature_central.py
parent9708fe8788eebb87bf3b0d6232dbed2012cf7358 (diff)
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.
Diffstat (limited to 'examples/bluetooth/ble_temperature_central.py')
-rw-r--r--examples/bluetooth/ble_temperature_central.py2
1 files changed, 1 insertions, 1 deletions
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: