From 8da98cbec60f84e32682d79873fd3526d153d7b9 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 21 Aug 2020 16:22:10 +0200 Subject: [PATCH] hci: fix warning --- src/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci.c b/src/hci.c index 3bd2cd9e0..83e9d5af1 100644 --- a/src/hci.c +++ b/src/hci.c @@ -2180,7 +2180,7 @@ static void event_handler(uint8_t *packet, uint16_t size){ #endif if (create_connection_cmd) { uint8_t status = hci_event_command_status_get_status(packet); - bd_addr_type_t addr_type = hci_stack->outgoing_addr_type; + addr_type = hci_stack->outgoing_addr_type; conn = hci_connection_for_bd_addr_and_type(hci_stack->outgoing_addr, addr_type); log_info("command status (create connection), status %x, connection %p, addr %s, type %x", status, conn, bd_addr_to_str(hci_stack->outgoing_addr), addr_type);