mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
restart advertising after disconnection
This commit is contained in:
parent
65754a0f66
commit
f78194fe6b
@ -261,6 +261,8 @@ static void on_ble_evt(ble_evt_t * p_ble_evt) {
|
||||
case BLE_GAP_EVT_DISCONNECTED:
|
||||
m_conn_handle = BLE_CONN_HANDLE_INVALID;
|
||||
jsiSetConsoleDevice( DEFAULT_CONSOLE_DEVICE );
|
||||
// restart advertising after disconnection
|
||||
jswrap_nrf_bluetooth_startAdvertise();
|
||||
break;
|
||||
|
||||
case BLE_GAP_EVT_SEC_PARAMS_REQUEST:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user