remove Bluefruit::connPaired() and BLEConnection::paired()
This commit is contained in:
1 parent
cb1a45498b
commit
0391ecac34
8 files changed
+3
-17
No files matched your search
@@ -140,7 +140,7 @@ void BLEGatt::_eventHandler(ble_evt_t* evt)
|
||||
chr->_eventHandler(evt);
|
||||
|
||||
// Save CCCD if paired
|
||||
if ( conn->paired() && (evt_id == BLE_GATTS_EVT_WRITE) && (req_handle == chr->handles().cccd_handle) )
|
||||
if ( conn->secured() && (evt_id == BLE_GATTS_EVT_WRITE) && (req_handle == chr->handles().cccd_handle) )
|
||||
{
|
||||
conn->saveCccd();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user