From a24785d0c1c38874bcd1f2f124d52cdbf7107626 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sun, 23 Oct 2016 22:11:16 +0200 Subject: [PATCH] l2cap: fix compile --- src/l2cap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/l2cap.c b/src/l2cap.c index 3eaf1d167..ddce336bb 100644 --- a/src/l2cap.c +++ b/src/l2cap.c @@ -1277,8 +1277,7 @@ static void l2cap_handle_connection_request(hci_con_handle_t handle, uint8_t sig // set initial state channel->state = L2CAP_STATE_WAIT_INCOMING_SECURITY_LEVEL_UPDATE; - channel->state_var = L2CAP_CHANNEL_STATE_VAR_SEND_CONN_RESP_PEND; - channel->state_var |= L2CAP_CHANNEL_STATE_VAR_INCOMING; + channel->state_var = (L2CAP_CHANNEL_STATE_VAR) (L2CAP_CHANNEL_STATE_VAR_SEND_CONN_RESP_PEND | L2CAP_CHANNEL_STATE_VAR_INCOMING); // add to connections list btstack_linked_list_add(&l2cap_channels, (btstack_linked_item_t *) channel);