Bluetooth: tests: bsim: Fix double advertising in test_connect2
There's a regression from commit 8cfad44852
which introduced trying to enable advertising twice. Remove the other
attempt.
Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
This commit is contained in:
committed by
Henrik Brix Andersen
parent
5b2afd4bdb
commit
7a672c05b3
@@ -151,14 +151,7 @@ static void bt_ready(void)
|
||||
|
||||
printk("Peripheral Bluetooth initialized\n");
|
||||
|
||||
err = bt_le_adv_start(BT_LE_ADV_CONN_FAST_1, ad, ARRAY_SIZE(ad), NULL, 0);
|
||||
if (err) {
|
||||
FAIL("Advertising failed to start (err %d)\n", err);
|
||||
return;
|
||||
}
|
||||
|
||||
err = start_advertising();
|
||||
|
||||
if (!err) {
|
||||
printk("Advertising successfully started\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user