From 9bd8b5b78c46da2f7d75d7ce05db3a50f9c56c58 Mon Sep 17 00:00:00 2001 From: FanHang Date: Wed, 20 Jul 2022 17:27:23 +0800 Subject: [PATCH] apps/blehr: Fix blehr notify stopped incorrectly Don't stop blehr notity if other handles subscribed Signed-off-by: Hang Fan --- apps/blehr/src/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/blehr/src/main.c b/apps/blehr/src/main.c index eb26322e0..e6dac7ce6 100644 --- a/apps/blehr/src/main.c +++ b/apps/blehr/src/main.c @@ -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;