From c58063359846a893295cbf9810e283ebbb9472f7 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Sat, 11 Feb 2017 14:35:00 +0100 Subject: [PATCH] nrf5/modules: Adding characteristic class to ubluepy globals table. --- nrf5/modules/ubluepy/modubluepy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nrf5/modules/ubluepy/modubluepy.c b/nrf5/modules/ubluepy/modubluepy.c index 488c4b69c4..94325b1a8a 100644 --- a/nrf5/modules/ubluepy/modubluepy.c +++ b/nrf5/modules/ubluepy/modubluepy.c @@ -31,6 +31,7 @@ extern const mp_obj_type_t ubluepy_peripheral_type; extern const mp_obj_type_t ubluepy_service_type; extern const mp_obj_type_t ubluepy_uuid_type; +extern const mp_obj_type_t ubluepy_characteristic_type; STATIC const mp_map_elem_t mp_module_ubluepy_globals_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_ubluepy) }, @@ -51,9 +52,7 @@ STATIC const mp_map_elem_t mp_module_ubluepy_globals_table[] = { #endif { MP_OBJ_NEW_QSTR(MP_QSTR_UUID), (mp_obj_t)&ubluepy_uuid_type }, { MP_OBJ_NEW_QSTR(MP_QSTR_Service), (mp_obj_t)&ubluepy_service_type }, -#if MICROPY_PY_UBLUEPY_CHARACTERISTIC { MP_OBJ_NEW_QSTR(MP_QSTR_Characteristic), (mp_obj_t)&ubluepy_characteristic_type }, -#endif #if MICROPY_PY_UBLUEPY_DESCRIPTOR { MP_OBJ_NEW_QSTR(MP_QSTR_Descriptor), (mp_obj_t)&ubluepy_descriptor_type }, #endif