From 5efd501109a68f8e99354b0ac0dd7c8923858e6a Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 19 Nov 2019 10:41:33 +0100 Subject: [PATCH] hci_cmd: use parentheses to clarify OPCODE macro --- src/hci_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci_cmd.c b/src/hci_cmd.c index 77f7cba89..6af233222 100644 --- a/src/hci_cmd.c +++ b/src/hci_cmd.c @@ -53,7 +53,7 @@ #include // calculate combined ogf/ocf value -#define OPCODE(ogf, ocf) ((ocf) | (ogf) << 10) +#define OPCODE(ogf, ocf) ((ocf) | ((ogf) << 10)) /** * construct HCI Command based on template