Skip to content

Commit

Permalink
Fixed flag macros
Browse files Browse the repository at this point in the history
Needed if you want to clear multiple flags at once
  • Loading branch information
Lauszus committed Dec 13, 2013
1 parent 471a8d9 commit 6ea34f9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions BTD.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@
#define HCI_FLAG_CONNECT_EVENT 0x100

/* Macros for HCI event flag tests */
#define hci_check_flag(flag) (hci_event_flag & flag)
#define hci_set_flag(flag) (hci_event_flag |= flag)
#define hci_clear_flag(flag) (hci_event_flag &= ~flag)
#define hci_check_flag(flag) (hci_event_flag & (flag))
#define hci_set_flag(flag) (hci_event_flag |= (flag))
#define hci_clear_flag(flag) (hci_event_flag &= ~(flag))

/* HCI Events managed */
#define EV_INQUIRY_COMPLETE 0x01
Expand Down Expand Up @@ -157,9 +157,9 @@
#define L2CAP_FLAG_DISCONNECT_RESPONSE 0x00004000

/* Macros for L2CAP event flag tests */
#define l2cap_check_flag(flag) (l2cap_event_flag & flag)
#define l2cap_set_flag(flag) (l2cap_event_flag |= flag)
#define l2cap_clear_flag(flag) (l2cap_event_flag &= ~flag)
#define l2cap_check_flag(flag) (l2cap_event_flag & (flag))
#define l2cap_set_flag(flag) (l2cap_event_flag |= (flag))
#define l2cap_clear_flag(flag) (l2cap_event_flag &= ~(flag))

/* L2CAP signaling commands */
#define L2CAP_CMD_COMMAND_REJECT 0x01
Expand Down

0 comments on commit 6ea34f9

Please sign in to comment.