This commit is contained in:
hathach 2018-12-19 23:27:29 +07:00
parent fc3d6e07ec
commit fc13287837
No known key found for this signature in database
GPG Key ID: 2FA891220FBFD581

View File

@ -741,7 +741,6 @@ static void on_ble_evt(ble_evt_t * p_ble_evt)
case BLE_GAP_EVT_CONNECTED: case BLE_GAP_EVT_CONNECTED:
m_conn_handle = p_ble_evt->evt.gap_evt.conn_handle; m_conn_handle = p_ble_evt->evt.gap_evt.conn_handle;
m_is_advertising = false; m_is_advertising = false;
led_state(STATE_BLE_CONNECTED);
break; break;
case BLE_GAP_EVT_DISCONNECTED: case BLE_GAP_EVT_DISCONNECTED:
@ -751,8 +750,6 @@ static void on_ble_evt(ble_evt_t * p_ble_evt)
m_direct_adv_cnt = APP_DIRECTED_ADV_TIMEOUT; m_direct_adv_cnt = APP_DIRECTED_ADV_TIMEOUT;
led_state(STATE_BLE_DISCONNECTED);
err_code = sd_ble_gatts_sys_attr_get(m_conn_handle, err_code = sd_ble_gatts_sys_attr_get(m_conn_handle,
sys_attr, sys_attr,
&sys_attr_len, &sys_attr_len,