nrf5/modules/ubluepy: Remove duplication GAP event handler registration in peripheral.connect().

This commit is contained in:
Glenn Ruben Bakke 2017-05-13 16:15:47 +02:00 committed by glennrub
parent 4584ef4ace
commit 3420843774
1 changed files with 0 additions and 2 deletions

View File

@ -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);
ble_drv_gap_event_handler_set(MP_OBJ_FROM_PTR(self), gap_event_handler);
if (MP_OBJ_IS_STR(dev_addr)) { if (MP_OBJ_IS_STR(dev_addr)) {
GET_STR_DATA_LEN(dev_addr, str_data, str_len); GET_STR_DATA_LEN(dev_addr, str_data, str_len);
if (str_len == 17) { // Example "11:22:33:aa:bb:cc" if (str_len == 17) { // Example "11:22:33:aa:bb:cc"