clean up
This commit is contained in:
parent
47f0bed840
commit
19c3721151
@ -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,
|
||||||
|
@ -82,6 +82,7 @@ void board_init(void)
|
|||||||
app_timer_init();
|
app_timer_init();
|
||||||
|
|
||||||
// Configure Systick for led blinky
|
// Configure Systick for led blinky
|
||||||
|
NVIC_SetPriority(SysTick_IRQn, 7);
|
||||||
extern uint32_t SystemCoreClock;
|
extern uint32_t SystemCoreClock;
|
||||||
SysTick_Config(SystemCoreClock/1000);
|
SysTick_Config(SystemCoreClock/1000);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user