You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2019/07/11 08:55:04 UTC

[mynewt-nimble] branch master updated: Fix BLE_ADDR_IS_NRPA and BLE_ADDR_IS_STATIC define

This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 091e766  Fix BLE_ADDR_IS_NRPA and BLE_ADDR_IS_STATIC define
091e766 is described below

commit 091e766150c59aebe70530d6a45de4e9d0199290
Author: CharlesParent <ch...@gmail.com>
AuthorDate: Thu Jul 11 10:48:07 2019 +0200

    Fix BLE_ADDR_IS_NRPA and BLE_ADDR_IS_STATIC define
---
 nimble/include/nimble/ble.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nimble/include/nimble/ble.h b/nimble/include/nimble/ble.h
index 3cb3612..1d72695 100644
--- a/nimble/include/nimble/ble.h
+++ b/nimble/include/nimble/ble.h
@@ -261,9 +261,9 @@ int ble_err_from_os(int os_err);
 #define BLE_ADDR_IS_RPA(addr)     (((addr)->type == BLE_ADDR_RANDOM) && \
                                    ((addr)->val[5] & 0xc0) == 0x40)
 #define BLE_ADDR_IS_NRPA(addr)    (((addr)->type == BLE_ADDR_RANDOM) && \
-                                   (((addr)->val[5] & 0xc0) == 0x00)
+                                   ((addr)->val[5] & 0xc0) == 0x00)
 #define BLE_ADDR_IS_STATIC(addr)  (((addr)->type == BLE_ADDR_RANDOM) && \
-                                   (((addr)->val[5] & 0xc0) == 0xc0)
+                                   ((addr)->val[5] & 0xc0) == 0xc0)
 
 typedef struct {
     uint8_t type;