mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-25 03:10:01 +00:00
apps/blehr: Fix blehr notify stopped incorrectly
Don't stop blehr notity if other handles subscribed Signed-off-by: Hang Fan <[email protected]>
This commit is contained in:
@@ -193,9 +193,6 @@ blehr_gap_event(struct ble_gap_event *event, void *arg)
|
||||
if (event->subscribe.attr_handle == hrs_hrm_handle) {
|
||||
notify_state = event->subscribe.cur_notify;
|
||||
blehr_tx_hrate_reset();
|
||||
} else if (event->subscribe.attr_handle != hrs_hrm_handle) {
|
||||
notify_state = event->subscribe.cur_notify;
|
||||
blehr_tx_hrate_stop();
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user