Skip to content

Commit b5b33e7

Browse files
committed
tests: bluetooth: iso: Fix use of undefined variable err
There was used an err variable to store return from bt_le_ext_adv_set_data(). That variable was not declared. The commit fixes compilation error. Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
1 parent 5cea0c5 commit b5b33e7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/bluetooth/iso/modules/peripheral.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ static int peripheral_init(void)
149149
}
150150

151151
/* Set the advertising data */
152-
err = bt_le_ext_adv_set_data(adv_ext, adv_data, ARRAY_SIZE(adv_data), NULL, 0);
153-
if (err) {
154-
LOG_ERR("Failed to set advertising data. Err: %d", err);
152+
ret = bt_le_ext_adv_set_data(adv_ext, adv_data, ARRAY_SIZE(adv_data), NULL, 0);
153+
if (ret) {
154+
LOG_ERR("Failed to set advertising data. Err: %d", ret);
155155
return;
156156
}
157157

0 commit comments

Comments
 (0)