mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
Update esphome/components/esp32_ble_server/ble_characteristic.cpp
Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com>
This commit is contained in:
parent
c3b29fbfab
commit
0bddfa1b39
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ void BLECharacteristic::add_descriptor(BLEDescriptor *descriptor) {
|
|||
[this](const std::vector<uint8_t> &value, uint16_t conn_id) {
|
||||
if (value.size() != 2)
|
||||
return;
|
||||
uint16_t cccd = (value[1] << 8) | value[0];
|
||||
uint16_t cccd = encode_uint16(value[1], value[0]);
|
||||
bool notify = (cccd & 1) != 0;
|
||||
bool indicate = (cccd & 2) != 0;
|
||||
if (notify || indicate) {
|
||||
|
|
Loading…
Reference in a new issue