mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-24 10:49:58 +00:00
apps: blestress: Perform all tests
Edit for loop to run all tests.
This commit is contained in:
committed by
Szymon Janc
parent
f9472d5748
commit
cdf2520550
@@ -1208,7 +1208,7 @@ static struct rx_stress_adv_set rx_stress_adv_sets[] = {
|
||||
},
|
||||
{
|
||||
.instance = SWITCHER_INSTANCE,
|
||||
.instance_uuid128 = rx_stress_uuid128[0],
|
||||
.instance_uuid128 = rx_stress_uuid128[1],
|
||||
.legacy_pdu = LEGACY_ADVERT,
|
||||
.cb = rx_stress_0_gap_event,
|
||||
.pattern_data = NULL,
|
||||
@@ -1340,6 +1340,12 @@ rx_stress_start(int test_num)
|
||||
|
||||
/* Start test. */
|
||||
switch (test_num) {
|
||||
case 0:
|
||||
return;
|
||||
case 1:
|
||||
console_printf("Nothing to do");
|
||||
rx_stress_simple_adv(&rx_stress_adv_sets[1]);
|
||||
return;
|
||||
case 2:
|
||||
console_printf("Stress Connect/Disconnect legacy\033[0m\n");
|
||||
rx_stress_simple_adv(&rx_stress_adv_sets[2]);
|
||||
@@ -1455,7 +1461,7 @@ rx_stress_main_task_fn(void *arg)
|
||||
os_sem_pend(&rx_stress_main_sem, OS_TIMEOUT_NEVER);
|
||||
|
||||
/* Standard tests perform */
|
||||
for (i = 11; i < STRESS_UUIDS_NUM; ++i) {
|
||||
for (i = 1; i < STRESS_UUIDS_NUM; ++i) {
|
||||
/* Start test. */
|
||||
rx_stress_start(i);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user