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:
FanHang
2022-08-11 15:24:52 +02:00
committed by Szymon Janc
parent f722d93661
commit 9bd8b5b78c
-3
View File
@@ -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;