Skip to content

Commit 4d4f372

Browse files
aescolarkartben
authored andcommitted
tests/bluetooth & bsim: Fix code compliance issues
Fix issues detected by checkpatch Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
1 parent 7be8872 commit 4d4f372

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/bluetooth/gatt/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ static void test1_ccc_cfg_changed(const struct bt_gatt_attr *attr, uint16_t valu
3939
nfy_enabled = (value == BT_GATT_CCC_NOTIFY) ? 1 : 0;
4040
}
4141

42-
static ssize_t test1_ccc_cfg_write_cb(struct bt_conn *conn, const struct bt_gatt_attr *attr, uint16_t value)
42+
static ssize_t test1_ccc_cfg_write_cb(struct bt_conn *conn, const struct bt_gatt_attr *attr,
43+
uint16_t value)
4344
{
4445
return sizeof(value);
4546
}

tests/bsim/bluetooth/host/gatt/ccc_store/src/peripheral.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ static void ccc_cfg_changed(const struct bt_gatt_attr *attr, uint16_t value)
5454
SET_FLAG(ccc_cfg_changed_flag);
5555
}
5656

57-
static ssize_t ccc_cfg_write_cb(struct bt_conn *conn, const struct bt_gatt_attr *attr, uint16_t value)
57+
static ssize_t ccc_cfg_write_cb(struct bt_conn *conn, const struct bt_gatt_attr *attr,
58+
uint16_t value)
5859
{
5960
if (notif_write_allowed) {
6061
LOG_INF("CCC Write Request accepted.");

0 commit comments

Comments
 (0)