You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by na...@apache.org on 2019/09/13 13:32:34 UTC
[mynewt-nimble] 04/32: apps/bttester: Fix search attribute by handle
This is an automated email from the ASF dual-hosted git repository.
naraj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 2321a8790ba54c45f488eae468302605f0bc6eb0
Author: MichaĆ Narajowski <mi...@codecoup.pl>
AuthorDate: Mon Apr 8 13:28:38 2019 +0200
apps/bttester: Fix search attribute by handle
---
apps/bttester/src/gatt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/bttester/src/gatt.c b/apps/bttester/src/gatt.c
index 4afeb1d..ff3f1dd 100644
--- a/apps/bttester/src/gatt.c
+++ b/apps/bttester/src/gatt.c
@@ -1884,7 +1884,7 @@ static u8_t foreach_get_attrs(u16_t handle,
struct gatt_attr *gatt_attr;
char uuid_buf[BLE_UUID_STR_LEN];
- if (handle < foreach->start_handle && handle > foreach->end_handle) {
+ if (handle < foreach->start_handle || handle > foreach->end_handle) {
return 0;
}