From 16b6ec81b6a8c3e0ddd473e0ca8b971ef9d49c02 Mon Sep 17 00:00:00 2001 From: Piotr Narajowski Date: Fri, 8 Mar 2024 15:05:45 +0100 Subject: [PATCH] apps: blestress: Perform all tests Edit for loop to run all tests. --- apps/blestress/src/rx_stress.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/blestress/src/rx_stress.c b/apps/blestress/src/rx_stress.c index 95b708218..52414dff3 100644 --- a/apps/blestress/src/rx_stress.c +++ b/apps/blestress/src/rx_stress.c @@ -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,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]); @@ -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); }