bletiny - Fix "disc full".

It looks like this broke when a certification compliance issue was
fixed.  The app was specifying a chr_val handle that is one too small.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/745ec6f4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/745ec6f4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/745ec6f4

Branch: refs/heads/sensors_branch
Commit: 745ec6f4925e8e199fea2b10e00e4c4979517c43
Parents: fcb5629
Author: Christopher Collins <ccoll...@apache.org>
Authored: Fri Jan 20 17:38:04 2017 -0800
Committer: Christopher Collins <ccoll...@apache.org>
Committed: Fri Jan 20 17:41:24 2017 -0800

----------------------------------------------------------------------
 apps/bletiny/src/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/745ec6f4/apps/bletiny/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bletiny/src/main.c b/apps/bletiny/src/main.c
index f8dbfbc..e5817a1 100755
--- a/apps/bletiny/src/main.c
+++ b/apps/bletiny/src/main.c
@@ -702,7 +702,7 @@ bletiny_disc_full_dscs(uint16_t conn_handle)
                 bletiny_full_disc_prev_chr_val <= chr->chr.def_handle) {
 
                 rc = bletiny_disc_all_dscs(conn_handle,
-                                           chr->chr.val_handle,
+                                           chr->chr.val_handle + 1,
                                            chr_end_handle(svc, chr));
                 if (rc != 0) {
                     bletiny_full_disc_complete(rc);

Reply via email to