sm: fix compile without ENABLE_LE_CENTRAL, fixes #554

This commit is contained in:
Matthias Ringwald 2024-01-10 11:53:24 +01:00
parent d48e511ecb
commit 45d80b0845

View File

@ -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;