fix warnings

This commit is contained in:
Matthias Ringwald 2017-07-26 19:22:06 +02:00
parent 0df3b7185a
commit 541785435d
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,8 @@ static void att_emit_can_send_now_event(void){
}
static void att_handle_value_indication_timeout(btstack_timer_source_t *ts){
hci_con_handle_t con_handle = (hci_con_handle_t) (uintptr_t) btstack_run_loop_get_timer_context(ts);
void * context = btstack_run_loop_get_timer_context(ts);
hci_con_handle_t con_handle = (hci_con_handle_t) (uintptr_t) context;
att_server_t * att_server = att_server_for_handle(con_handle);
if (!att_server) return;
uint16_t att_handle = att_server->value_indication_handle;

View File

@ -171,7 +171,6 @@ extern const hci_cmd_t hci_le_read_advertising_channel_tx_power;
extern const hci_cmd_t hci_le_read_buffer_size ;
extern const hci_cmd_t hci_le_read_channel_map;
extern const hci_cmd_t hci_le_read_local_p256_public_key;
extern const hci_cmd_t hci_le_read_local_p256_public_key;
extern const hci_cmd_t hci_le_read_maximum_data_length;
extern const hci_cmd_t hci_le_read_remote_used_features;
extern const hci_cmd_t hci_le_read_suggested_default_data_length;