Diff between f7feed604f7c000bc21a15b4cf284feb57227852 and b3085ec34614974a30fbe81b862d5823fe6740af
Changed Files
| File | Additions | Deletions | Status |
| android/gatt.c | +1 | -1 | modified |
Full Patch
diff --git a/android/gatt.c b/android/gatt.c
index bd7b31a..6793f95 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -1844,7 +1844,7 @@ static bool build_descr_cache(int32_t conn_id, struct gatt_device *dev,
/* Clip range to given characteristic */
start = ch->ch.value_handle + 1;
- end = srvc->prim.range.end;
+ end = srvc->primary ? srvc->prim.range.end : srvc->incl.range.end;
/* Use next characteristic start as end. If there is none -
* service end is valid end.