hci: fix compile without sco-over-hci

This commit is contained in:
Matthias Ringwald 2019-03-18 21:56:54 +01:00
parent f234b25082
commit fa53fe20c5

View File

@ -4977,7 +4977,6 @@ uint16_t hci_get_sco_voice_setting(void){
}
#ifdef ENABLE_CLASSIC
#ifdef ENABLE_SCO_OVER_HCI
static int hci_have_usb_transport(void){
if (!hci_stack->hci_transport) return 0;
const char * transport_name = hci_stack->hci_transport->name;
@ -4985,7 +4984,6 @@ static int hci_have_usb_transport(void){
return (transport_name[0] == 'H') && (transport_name[1] == '2');
}
#endif
#endif
/** @brief Get SCO packet length for current SCO Voice setting
* @note Using SCO packets of the exact length is required for USB transfer