fix compile

This commit is contained in:
Milanka Ringwald 2015-07-16 10:57:37 +02:00
parent 7a5779a838
commit d0c2a22fc7
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ static void hfp_run(hfp_connection_t * connection){
if (!connection) return; if (!connection) return;
switch (connection->state){ switch (connection->state){
case HFP_W4_SUPPORTED_FEATURES_EXCHANGE: case HFP_EXCHANGE_SUPPORTED_FEATURES:
break; break;
default: default:
@ -122,7 +122,7 @@ static void packet_handler(void * connection, uint8_t packet_type, uint16_t chan
hfp_run(context); 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){ 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); log_error("hfp_init: codecs_nr (%d) > HFP_MAX_NUM_CODECS (%d)", codecs_nr, HFP_MAX_NUM_CODECS);
return; return;

View File

@ -137,7 +137,7 @@ static void emit_event(uint8_t event_subtype, uint8_t value){
// remote audio volume control // remote audio volume control
// AG +VGM=13 [0..15] ; HS AT+VGM=6 | AG OK // 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; if (!rfcomm_can_send_packet_now(rfcomm_cid)) return 1;
int err = rfcomm_send_internal(cid, (uint8_t*) command, strlen(command)); int err = rfcomm_send_internal(cid, (uint8_t*) command, strlen(command));
if (err){ if (err){