mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 06:39:53 +00:00
fix compile
This commit is contained in:
parent
7a5779a838
commit
d0c2a22fc7
@ -86,7 +86,7 @@ static void hfp_run(hfp_connection_t * connection){
|
||||
if (!connection) return;
|
||||
|
||||
switch (connection->state){
|
||||
case HFP_W4_SUPPORTED_FEATURES_EXCHANGE:
|
||||
case HFP_EXCHANGE_SUPPORTED_FEATURES:
|
||||
|
||||
break;
|
||||
default:
|
||||
@ -122,7 +122,7 @@ static void packet_handler(void * connection, uint8_t packet_type, uint16_t chan
|
||||
hfp_run(context);
|
||||
}
|
||||
|
||||
void hfp_ag_init(uint16_t rfcomm_channel_nr, uint16_t supported_features, uint8_t * codecs, int codecs_nr){
|
||||
void hfp_ag_init(uint16_t rfcomm_channel_nr, uint32_t supported_features, uint8_t * codecs, int codecs_nr){
|
||||
if (codecs_nr > HFP_MAX_NUM_CODECS){
|
||||
log_error("hfp_init: codecs_nr (%d) > HFP_MAX_NUM_CODECS (%d)", codecs_nr, HFP_MAX_NUM_CODECS);
|
||||
return;
|
||||
|
@ -137,7 +137,7 @@ static void emit_event(uint8_t event_subtype, uint8_t value){
|
||||
// remote audio volume control
|
||||
// AG +VGM=13 [0..15] ; HS AT+VGM=6 | AG OK
|
||||
|
||||
static int send_str_over_rfcomm(uint16_t cid, char * command){
|
||||
int send_str_over_rfcomm(uint16_t cid, char * command){
|
||||
if (!rfcomm_can_send_packet_now(rfcomm_cid)) return 1;
|
||||
int err = rfcomm_send_internal(cid, (uint8_t*) command, strlen(command));
|
||||
if (err){
|
||||
|
Loading…
x
Reference in New Issue
Block a user