tests: bsim: testlib: Fix compilation error
Fixes compilation error seen if CONFIG_BT_EATT is unset testlib/src/att_read.c:179:73: error: expected expression before ‘,’ token 179 | IF_ENABLED(CONFIG_BT_EATT, (.chan_opt = bearer)), | ^ Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
parent
f12e1d75ed
commit
f0715fcbb3
|
@ -149,7 +149,7 @@ int bt_testlib_att_read_by_handle_sync(struct net_buf_simple *result_data, uint1
|
|||
.params = {
|
||||
.handle_count = 1,
|
||||
.single = {.handle = handle, .offset = offset},
|
||||
IF_ENABLED(CONFIG_BT_EATT, (.chan_opt = bearer)),
|
||||
IF_ENABLED(CONFIG_BT_EATT, (.chan_opt = bearer,))
|
||||
}};
|
||||
|
||||
if (bearer == BT_ATT_CHAN_OPT_ENHANCED_ONLY) {
|
||||
|
@ -176,7 +176,7 @@ int bt_testlib_gatt_long_read(struct net_buf_simple *result_data, uint16_t *resu
|
|||
.params = {
|
||||
.handle_count = 1,
|
||||
.single = {.handle = handle, .offset = offset},
|
||||
IF_ENABLED(CONFIG_BT_EATT, (.chan_opt = bearer)),
|
||||
IF_ENABLED(CONFIG_BT_EATT, (.chan_opt = bearer,))
|
||||
}};
|
||||
|
||||
if (bearer == BT_ATT_CHAN_OPT_ENHANCED_ONLY) {
|
||||
|
|
Loading…
Reference in New Issue