From 7c6f041b8c1fb6a642923fb45033631ab6040951 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Thu, 30 Mar 2017 23:39:45 +0200 Subject: [PATCH] nrf5/modules/ubluepy: Adding dummy function call to ble_drv_attr_c_read. --- nrf5/modules/ubluepy/ubluepy_characteristic.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nrf5/modules/ubluepy/ubluepy_characteristic.c b/nrf5/modules/ubluepy/ubluepy_characteristic.c index 313ac8ec4b..c1cfdd415d 100644 --- a/nrf5/modules/ubluepy/ubluepy_characteristic.c +++ b/nrf5/modules/ubluepy/ubluepy_characteristic.c @@ -86,8 +86,10 @@ STATIC mp_obj_t ubluepy_characteristic_make_new(const mp_obj_type_t *type, size_ /// STATIC mp_obj_t char_read(mp_obj_t self_in) { ubluepy_characteristic_obj_t * self = MP_OBJ_TO_PTR(self_in); - (void)self; - // ble_drv_characteristic_read(); + ble_drv_attr_c_read(self->p_service->p_periph->conn_handle, + self->handle, + 0, + NULL); return mp_const_none; }