mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 10:26:53 +01:00
Avoid creating a new espbt::ESPBTUUID each loop when registering for notify (#4069)
This commit is contained in:
parent
b2e6b9d31f
commit
1c9c700d7f
@ -299,7 +299,7 @@ BLEDescriptor *BLEClientBase::get_config_descriptor(uint16_t handle) {
|
||||
auto *chr = this->get_characteristic(handle);
|
||||
if (chr != nullptr) {
|
||||
for (auto &desc : chr->descriptors) {
|
||||
if (desc->uuid == espbt::ESPBTUUID::from_uint16(0x2902))
|
||||
if (desc->uuid.get_uuid().uuid.uuid16 == 0x2902)
|
||||
return desc;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user