From 45d80b0845bec32e5f62dffbedd0ccd2b60d77b1 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 10 Jan 2024 11:53:24 +0100 Subject: [PATCH] sm: fix compile without ENABLE_LE_CENTRAL, fixes #554 --- src/ble/sm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ble/sm.c b/src/ble/sm.c index 3047b9fcc..294c48a2f 100644 --- a/src/ble/sm.c +++ b/src/ble/sm.c @@ -1291,15 +1291,16 @@ static void sm_address_resolution_handle_event(address_resolution_event_t event) sm_address_resolution_mode = ADDRESS_RESOLUTION_IDLE; sm_address_resolution_context = NULL; sm_address_resolution_test = -1; - hci_con_handle_t con_handle = 0; + hci_con_handle_t con_handle = HCI_CON_HANDLE_INVALID; sm_connection_t * sm_connection; sm_key_t ltk; bool have_ltk; + int authenticated; #ifdef ENABLE_LE_CENTRAL bool trigger_pairing; - int authenticated; #endif + switch (mode){ case ADDRESS_RESOLUTION_GENERAL: break;