hci: fix commpile warning

This commit is contained in:
Matthias Ringwald 2019-03-18 19:11:46 +01:00
parent 65da407b58
commit 5a6b2dbdc0

View File

@ -2537,7 +2537,7 @@ static void sco_schedule_tx(hci_connection_t * conn);
static void sco_tx_timeout_handler(btstack_timer_source_t * ts){
log_info("SCO TX Timeout");
hci_con_handle_t con_handle = (hci_con_handle_t) btstack_run_loop_get_timer_context(ts);
hci_con_handle_t con_handle = (hci_con_handle_t) (uintptr_t) btstack_run_loop_get_timer_context(ts);
hci_connection_t * conn = hci_connection_for_handle(con_handle);
if (!conn) return;