Skip to content

Commit

Permalink
Fixed indication logic
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuelzon committed Apr 29, 2019
1 parent 6365e2d commit 6d307b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/ble.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ int ble_characteristic_notify_register(mac_addr_t mac, ble_uuid_t service_uuid,
if (characteristic->client_config_handle == 0)
return -1;

if (characteristic->properties | CHAR_PROP_INDICATE)
if (characteristic->properties & CHAR_PROP_INDICATE)
enable = htole16(0x2);

if (esp_ble_gattc_register_for_notify(g_gattc_if, device->mac,
Expand Down

0 comments on commit 6d307b3

Please sign in to comment.