diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2020-10-28 13:17:23 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-11-13 17:19:05 +1100 |
commit | 3d890e7ab4b3d85a6fa9e57a9a596a23eeaa6aa7 (patch) | |
tree | a500b6f65de0b776722d007dcae65a0dec1d9fbb /extmod/btstack | |
parent | c75ce379100993f41a7502986146e735367cf8aa (diff) | |
download | micropython-3d890e7ab4b3d85a6fa9e57a9a596a23eeaa6aa7.tar.gz micropython-3d890e7ab4b3d85a6fa9e57a9a596a23eeaa6aa7.zip |
extmod/modbluetooth: Make UUID type accessible outside modbluetooth.c.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'extmod/btstack')
-rw-r--r-- | extmod/btstack/modbluetooth_btstack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extmod/btstack/modbluetooth_btstack.c b/extmod/btstack/modbluetooth_btstack.c index ae96035868..fd5d343637 100644 --- a/extmod/btstack/modbluetooth_btstack.c +++ b/extmod/btstack/modbluetooth_btstack.c @@ -75,6 +75,7 @@ STATIC int btstack_error_to_errno(int err) { #if MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE STATIC mp_obj_bluetooth_uuid_t create_mp_uuid(uint16_t uuid16, const uint8_t *uuid128) { mp_obj_bluetooth_uuid_t result; + result.base.type = &mp_type_bluetooth_uuid; if (uuid16 != 0) { result.data[0] = uuid16 & 0xff; result.data[1] = (uuid16 >> 8) & 0xff; |