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.
This commit is contained in:
Jim Mussared
2020-05-19 16:00:23 +10:00
committed by Damien George
parent 9708fe8788
commit 1cad63c0bc
3 changed files with 9 additions and 5 deletions

View File

@@ -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: