From 34208437746a0959af83684edba098b2d6b035e6 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Sat, 13 May 2017 16:15:47 +0200 Subject: [PATCH] nrf5/modules/ubluepy: Remove duplication GAP event handler registration in peripheral.connect(). --- nrf5/modules/ubluepy/ubluepy_peripheral.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/nrf5/modules/ubluepy/ubluepy_peripheral.c b/nrf5/modules/ubluepy/ubluepy_peripheral.c index 4f3a93f82a..ac1584d044 100644 --- a/nrf5/modules/ubluepy/ubluepy_peripheral.c +++ b/nrf5/modules/ubluepy/ubluepy_peripheral.c @@ -357,8 +357,6 @@ STATIC mp_obj_t peripheral_connect(mp_uint_t n_args, const mp_obj_t *pos_args, m ble_drv_gap_event_handler_set(MP_OBJ_FROM_PTR(self), gap_event_handler); - ble_drv_gap_event_handler_set(MP_OBJ_FROM_PTR(self), gap_event_handler); - if (MP_OBJ_IS_STR(dev_addr)) { GET_STR_DATA_LEN(dev_addr, str_data, str_len); if (str_len == 17) { // Example "11:22:33:aa:bb:cc"