bthci: fixed initialisation (#1928)

This commit is contained in:
Johny Mattsson 2017-04-24 15:46:05 +10:00
parent c69b3b31e8
commit 9faa63f116
1 changed files with 1 additions and 0 deletions

View File

@ -332,6 +332,7 @@ static int lbthci_init (lua_State *L)
esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
esp_bt_controller_init (&bt_cfg);
esp_bt_controller_enable (ESP_BT_MODE_BTDM);
esp_vhci_host_register_callback (&bthci_callbacks);