Skip to content

Commit

Permalink
apps: blestress: Perform all tests
Browse files Browse the repository at this point in the history
Edit for loop to run all tests.
  • Loading branch information
piotrnarajowski committed Mar 11, 2024
1 parent 253f590 commit 16b6ec8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions apps/blestress/src/rx_stress.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -1340,6 +1340,13 @@ 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[0]);
rx_stress_simple_adv(&rx_stress_adv_sets[1]);
break;
case 2:
console_printf("Stress Connect/Disconnect legacy\033[0m\n");
rx_stress_simple_adv(&rx_stress_adv_sets[2]);
Expand Down Expand Up @@ -1455,7 +1462,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);
}
Expand Down

0 comments on commit 16b6ec8

Please sign in to comment.