mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 22:14:54 +01:00
Avoid creating a new espbt::ESPBTUUID each loop when registering for notify (#4069)
This commit is contained in:
parent
b2e6b9d31f
commit
1c9c700d7f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue