Merge pull request #346 from dlech/fix-sm-compile-error

sm: fix compile error when ENABLE_LE_CENTRAL is not set
This commit is contained in:
Matthias Ringwald 2021-03-23 18:46:30 +01:00 committed by GitHub
commit e50adcaf1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3819,8 +3819,10 @@ static void sm_pdu_handler(uint8_t packet_type, hci_con_handle_t con_handle, uin
return;
}
#ifdef ENABLE_LE_CENTRAL
int have_ltk;
uint8_t ltk[16];
#endif
switch (sm_conn->sm_engine_state){