Skip to content

Commit 18e73d4

Browse files
committed
nrf5/modules/ubluepy: Fixing compilation bug of wrong variable name when registering gattc event handler in ublupy peripheral connect function (central mode).
1 parent 96b203b commit 18e73d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nrf5/modules/ubluepy/ubluepy_peripheral.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ STATIC mp_obj_t peripheral_connect(mp_obj_t self_in, mp_obj_t dev_addr) {
372372
;
373373
}
374374

375-
ble_drv_gattc_event_handler_set(MP_OBJ_FROM_PTR(s), gattc_event_handler);
375+
ble_drv_gattc_event_handler_set(MP_OBJ_FROM_PTR(self), gattc_event_handler);
376376

377377
bool retval = ble_drv_discover_services(self, self->conn_handle, disc_add_service);
378378
if (retval != true) {

0 commit comments

Comments
 (0)