We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13e0206 commit 6806aafCopy full SHA for 6806aaf
libraries/BLE/src/BLERemoteService.cpp
@@ -302,10 +302,6 @@ std::string BLERemoteService::getValue(BLEUUID characteristicUuid) {
302
* @return N/A.
303
*/
304
void BLERemoteService::removeCharacteristics() {
305
- for (auto &myPair : m_characteristicMap) {
306
- delete myPair.second;
307
- //m_characteristicMap.erase(myPair.first); // Should be no need to delete as it will be deleted by the clear
308
- }
309
m_characteristicMap.clear(); // Clear the map
310
for (auto &myPair : m_characteristicMapByHandle) {
311
delete myPair.second;
0 commit comments