Skip to content

Commit

Permalink
Bluetooth: Use hexadecimal notation for mask
Browse files Browse the repository at this point in the history
Using hexadecimal notation for mask makes code easier to read

Signed-off-by: Andrei Emeltchenko <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
finikorg authored and holtmann committed Dec 9, 2015
1 parent 17fd08f commit 1d3a1e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bluetooth/hci_h5.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ static void h5_handle_internal_rx(struct hci_uart *hu)
h5_link_control(hu, conf_req, 3);
} else if (memcmp(data, conf_rsp, 2) == 0) {
if (H5_HDR_LEN(hdr) > 2)
h5->tx_win = (data[2] & 7);
h5->tx_win = (data[2] & 0x07);
BT_DBG("Three-wire init complete. tx_win %u", h5->tx_win);
h5->state = H5_ACTIVE;
hci_uart_init_ready(hu);
Expand Down

0 comments on commit 1d3a1e6

Please sign in to comment.