mirror of
https://github.com/micropython/micropython.git
synced 2025-08-28 21:40:38 +02:00
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:
committed by
Damien George
parent
9708fe8788
commit
1cad63c0bc
@@ -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:
|
||||
|
Reference in New Issue
Block a user