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 authored and sjanc committed Mar 12, 2024
1 parent f9472d5 commit cdf2520
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 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,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]);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit cdf2520

Please sign in to comment.