mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-09 15:57:22 +00:00
nimble/host: fix event flag check
Previous check resulted in assert in ble_gap_subscribe_event when prev_flags had BLE_GATTS_CLT_CFG_F_MODIFIED bit set X-Original-Commit: 8bade89cbc7c2d27563aa4d6879baa775295d68c
This commit is contained in:
@@ -617,7 +617,7 @@ ble_gatts_subscribe_event(uint16_t conn_handle, uint16_t attr_handle,
|
||||
uint8_t reason,
|
||||
uint8_t prev_flags, uint8_t cur_flags)
|
||||
{
|
||||
if (prev_flags != cur_flags) {
|
||||
if ((prev_flags ^ cur_flags) & ~BLE_GATTS_CLT_CFG_F_RESERVED) {
|
||||
ble_gap_subscribe_event(conn_handle,
|
||||
attr_handle,
|
||||
reason,
|
||||
|
||||
Reference in New Issue
Block a user