You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by st...@apache.org on 2016/12/18 21:56:45 UTC

[17/50] incubator-mynewt-core git commit: gattc: Fix unnecessary status overwrite in read by type err

gattc: Fix unnecessary status overwrite in read by type err

This status change is not needed. With this patch it is possible to
pass TC_GAR_CL_BI_07_C.


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/c656e5a9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/c656e5a9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/c656e5a9

Branch: refs/heads/sensors_branch
Commit: c656e5a92e54e88c1d196ffbb8a5b73c9ab42129
Parents: 3aa49e6
Author: Micha\u0142 Narajowski <mi...@codecoup.pl>
Authored: Mon Dec 5 15:25:24 2016 +0100
Committer: Sterling Hughes <st...@apache.org>
Committed: Sun Dec 18 13:56:16 2016 -0800

----------------------------------------------------------------------
 net/nimble/host/src/ble_gattc.c | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/c656e5a9/net/nimble/host/src/ble_gattc.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_gattc.c b/net/nimble/host/src/ble_gattc.c
index 8bbe0b1..d962208 100644
--- a/net/nimble/host/src/ble_gattc.c
+++ b/net/nimble/host/src/ble_gattc.c
@@ -3108,10 +3108,6 @@ ble_gattc_read_uuid_err(struct ble_gattc_proc *proc, int status,
 {
     ble_gattc_dbg_assert_proc_not_inserted(proc);
 
-    if (status == BLE_HS_ATT_ERR(BLE_ATT_ERR_ATTR_NOT_FOUND)) {
-        /* Read is complete. */
-        status = 0;
-    }
     ble_gattc_read_uuid_cb(proc, status, att_handle, NULL);
 }