remove Bluefruit::connPaired() and BLEConnection::paired()

This commit is contained in:
hathach committed 2020-03-19 15:52:23 +07:00
1 parent cb1a45498b
commit 0391ecac34
8 files changed
+3 -17

No files matched your search

+1 -1
View File
@@ -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();
}