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

[2/4] incubator-mynewt-core git commit: nimble/att: Rename ble_att_svr_is_valid_group_type

nimble/att: Rename ble_att_svr_is_valid_group_type

The ble_att_svr_is_valid_read_group_type() checks if given type is
valid for Read By Group Type Request only, not if it is valid group
type in general. Rename this function so it is more clear what it
does.


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

Branch: refs/heads/develop
Commit: 0b81089fc7554cea59aa503905a193c008de70da
Parents: 1f2b6bb
Author: Andrzej Kaczmarek <an...@codecoup.pl>
Authored: Tue Dec 13 16:25:14 2016 +0100
Committer: Andrzej Kaczmarek <an...@codecoup.pl>
Committed: Tue Dec 20 15:29:43 2016 +0100

----------------------------------------------------------------------
 net/nimble/host/src/ble_att_svr.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/0b81089f/net/nimble/host/src/ble_att_svr.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_att_svr.c b/net/nimble/host/src/ble_att_svr.c
index 45299de..387745b 100644
--- a/net/nimble/host/src/ble_att_svr.c
+++ b/net/nimble/host/src/ble_att_svr.c
@@ -1713,7 +1713,7 @@ done:
 }
 
 static int
-ble_att_svr_is_valid_group_type(uint8_t *uuid128)
+ble_att_svr_is_valid_read_group_type(uint8_t *uuid128)
 {
     uint16_t uuid16;
 
@@ -1848,7 +1848,7 @@ ble_att_svr_build_read_group_type_rsp(uint16_t conn_handle,
 
         if (start_group_handle != 0) {
             /* We have already found the start of a group. */
-            if (!ble_att_svr_is_valid_group_type(entry->ha_uuid)) {
+            if (!ble_att_svr_is_valid_read_group_type(entry->ha_uuid)) {
                 /* This attribute is part of the current group. */
                 end_group_handle = entry->ha_handle_id;
             } else {
@@ -2019,7 +2019,7 @@ ble_att_svr_rx_read_group_type(uint16_t conn_handle, struct os_mbuf **rxom)
         goto done;
     }
 
-    if (!ble_att_svr_is_valid_group_type(uuid128)) {
+    if (!ble_att_svr_is_valid_read_group_type(uuid128)) {
         att_err = BLE_ATT_ERR_UNSUPPORTED_GROUP;
         err_handle = req.bagq_start_handle;
         rc = BLE_HS_ENOTSUP;