1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-22 19:53:46 +01:00

Fix descriptors not being deleted (#4104)

This commit is contained in:
J. Nick Koston
2022-11-28 08:49:41 -10:00
committed by GitHub
parent 1166d93805
commit 75573a3ed1
7 changed files with 26 additions and 6 deletions

View File

@@ -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_++;
}