esp32: register vhci callback after enabling controller

This commit is contained in:
Matthias Ringwald 2022-06-07 18:34:31 +02:00
parent 761810140b
commit f83e233b86

View File

@ -241,7 +241,6 @@ static int transport_open(void){
return -1;
}
esp_vhci_host_register_callback(&vhci_host_cb);
}
// Enable classic mode by default
@ -261,6 +260,8 @@ static int transport_open(void){
return -1;
}
esp_vhci_host_register_callback(&vhci_host_cb);
return 0;
}