Skip to content

Commit

Permalink
Update subsys/bluetooth/host/gatt.c
Browse files Browse the repository at this point in the history
Co-authored-by: Emil Gydesen <[email protected]>
  • Loading branch information
Yagoor and Thalley authored Dec 2, 2024
1 parent ada1845 commit 8da9e03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions subsys/bluetooth/host/gatt.c
Original file line number Diff line number Diff line change
Expand Up @@ -5446,8 +5446,7 @@ int bt_gatt_subscribe(struct bt_conn *conn,
return -ENOTCONN;
}

if (params->value < BT_GATT_CCC_NOTIFY
|| params->value > BT_GATT_CCC_INDICATE) {
if (!IN_RANGE(params->value, BT_GATT_CCC_NOTIFY, BT_GATT_CCC_NOTIFY | BT_GATT_CCC_INDICATE) {

Check warning on line 5449 in subsys/bluetooth/host/gatt.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LONG_LINE

subsys/bluetooth/host/gatt.c:5449 line length of 101 exceeds 100 columns
return -EINVAL;
}

Expand Down

0 comments on commit 8da9e03

Please sign in to comment.