nimble/controller: Minor fix to avoid magic number

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

Branch: refs/heads/nrf_cputime
Commit: 0f1037994bfd4d5007a50f9f80d5f544fc885bd7
Parents: b05acb1
Author: Łukasz Rymanowski <[email protected]>
Authored: Tue Mar 21 11:50:35 2017 +0100
Committer: Łukasz Rymanowski <[email protected]>
Committed: Wed Mar 22 14:20:40 2017 +0100

----------------------------------------------------------------------
 net/nimble/controller/src/ble_ll_ctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/0f103799/net/nimble/controller/src/ble_ll_ctrl.c
----------------------------------------------------------------------
diff --git a/net/nimble/controller/src/ble_ll_ctrl.c 
b/net/nimble/controller/src/ble_ll_ctrl.c
index 03f2836..1ba93bd 100644
--- a/net/nimble/controller/src/ble_ll_ctrl.c
+++ b/net/nimble/controller/src/ble_ll_ctrl.c
@@ -1722,7 +1722,7 @@ ble_ll_ctrl_rx_pdu(struct ble_ll_conn_sm *connsm, struct 
os_mbuf *om)
 
     /* Free mbuf or send response */
 ll_ctrl_send_rsp:
-    if (rsp_opcode == 255) {
+    if (rsp_opcode == BLE_ERR_MAX) {
         os_mbuf_free_chain(om);
     } else {
         /*

Reply via email to