Fix compilation when CONFIG_BTDM_BLE_SCAN_DUPL is not enabled.

*  fix warning: variable 'pkey' set but not used [-Wunused-but-set-variable]
---------

Co-authored-by: Franz Höpfinger <f.hoepfinger@hr-agrartechnik.de>
This commit is contained in:
h2zero
2023-05-29 09:08:14 -06:00
committed by GitHub
parent 4ff9baf68a
commit 1786d0ede3
3 changed files with 16 additions and 6 deletions

View File

@@ -1138,6 +1138,7 @@ int NimBLEClient::handleGapEvent(struct ble_gap_event *event, void *arg) {
case BLE_GAP_EVENT_PASSKEY_ACTION: {
struct ble_sm_io pkey = {0,0};
(void)pkey; //warning: variable 'pkey' set but not used [-Wunused-but-set-variable]
if(pClient->m_conn_id != event->passkey.conn_handle)
return 0;