forked from h2zero/esp-nimble-cpp
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user