From ecb7d4614be3a3ff4ea7da0d63ca0d445d523061 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 1 Feb 2017 15:04:13 +0100 Subject: [PATCH] hfp: fix warning --- src/classic/hfp_hf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classic/hfp_hf.c b/src/classic/hfp_hf.c index 20cb06fbf..3e5939aa5 100644 --- a/src/classic/hfp_hf.c +++ b/src/classic/hfp_hf.c @@ -833,7 +833,7 @@ static void hfp_run_for_context(hfp_connection_t * hfp_connection){ hfp_connection->ok_pending = 1; hfp_connection->generic_status_update_bitmap = store_bit(hfp_connection->generic_status_update_bitmap, i, 0); char buffer[30]; - sprintf(buffer, "AT%s=%u,%u\r\n", HFP_TRANSFER_HF_INDICATOR_STATUS, hfp_indicators[i], hfp_indicators_value[i]); + sprintf(buffer, "AT%s=%u,%u\r\n", HFP_TRANSFER_HF_INDICATOR_STATUS, hfp_indicators[i], (unsigned int) hfp_indicators_value[i]); send_str_over_rfcomm(hfp_connection->rfcomm_cid, buffer); } else { log_info("Not sending HF indicator %u as it is disabled", hfp_indicators[i]);