Fix descriptors not being deleted (#4104)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2022-11-29 07:49:41 +13:00
1 parent 1166d93805
commit 75573a3ed1
7 files changed
+26 -6

No files matched your search

@@ -109,8 +109,7 @@ void BluetoothProxy::loop() {
// after sending them to save memory. If something actually needs them
// it can parse them again.
for (auto &characteristic : service->characteristics) {
characteristic->parsed = false;
characteristic->descriptors.clear();
characteristic->release_descriptors();
}
connection->send_service_++;
}