nrf5/modules/ubluepy: Fixing compilation bug of wrong variable name when registering gattc event handler in ublupy peripheral connect function (central mode).

This commit is contained in:
Glenn Ruben Bakke 2017-05-12 20:09:26 +02:00 committed by glennrub
parent 96b203b729
commit 18e73d4214
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ STATIC mp_obj_t peripheral_connect(mp_obj_t self_in, mp_obj_t dev_addr) {
;
}
ble_drv_gattc_event_handler_set(MP_OBJ_FROM_PTR(s), gattc_event_handler);
ble_drv_gattc_event_handler_set(MP_OBJ_FROM_PTR(self), gattc_event_handler);
bool retval = ble_drv_discover_services(self, self->conn_handle, disc_add_service);
if (retval != true) {