From d0c2a22fc7d5e7a3373fd1b828845e75474e1ac3 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Thu, 16 Jul 2015 10:57:37 +0200 Subject: [PATCH] fix compile --- src/hfp_ag.c | 4 ++-- src/hsp_hs.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hfp_ag.c b/src/hfp_ag.c index 513c0cd09..df5206ae8 100644 --- a/src/hfp_ag.c +++ b/src/hfp_ag.c @@ -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; diff --git a/src/hsp_hs.c b/src/hsp_hs.c index abf2d5ccc..5843f7164 100644 --- a/src/hsp_hs.c +++ b/src/hsp_hs.c @@ -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){