-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apps/blestress: extend functionality of blestress #1731
base: master
Are you sure you want to change the base?
Conversation
951aed9
to
5db6719
Compare
uint8_t dflt = 0; | ||
int rc; | ||
|
||
rc = parse_arg_init(argc - 1, argv +1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rc = parse_arg_init(argc - 1, argv +1); | |
rc = parse_arg_init(argc - 1, argv + 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick
.itvl_min = 0x0006,/*BLE_GAP_INITIAL_CONN_ITVL_MIN */ | ||
.itvl_max = 0x0006,/*BLE_GAP_INITIAL_CONN_ITVL_MIN */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.itvl_min = 0x0006,/*BLE_GAP_INITIAL_CONN_ITVL_MIN */ | |
.itvl_max = 0x0006,/*BLE_GAP_INITIAL_CONN_ITVL_MIN */ | |
.itvl_min = 0x0006,/* BLE_GAP_INITIAL_CONN_ITVL_MIN */ | |
.itvl_max = 0x0006,/* BLE_GAP_INITIAL_CONN_ITVL_MIN */ |
nitpick
} else { | ||
rx_stress_start(test_case_num); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is else here necessary? If test_case_num == 0
run those loops, otherwise just run rx_stress_start(test_case_num)
, or am I missing something?
} else { | |
rx_stress_start(test_case_num); | |
} | |
rx_stress_start(test_case_num); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The point was not to run rx_stress_start(0) after exiting the if statement
void rx_stress_start_auto(); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif //_BLE_STRESS_RX_H | ||
#endif /*_BLE_STRESS_RX_H */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick
#endif /*_BLE_STRESS_RX_H */ | |
#endif /* _BLE_STRESS_RX_H */ |
console_printf( | ||
"\033[0;33mUse case 1 - " | ||
"Stress Connect -> Connect Cancel: \n\033[0m"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console_printf( | |
"\033[0;33mUse case 1 - " | |
"Stress Connect -> Connect Cancel: \n\033[0m"); | |
console_printf("\033[0;33mUse case 1 - " | |
"Stress Connect -> Connect Cancel: \n\033[0m"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applies also in some places below.
console_printf("Con attempts = %d\n", | ||
test_ctxs->con_stat[1].attempts_num); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console_printf("Con attempts = %d\n", | |
test_ctxs->con_stat[1].attempts_num); | |
console_printf("Con attempts = %d\n", | |
test_ctxs->con_stat[1].attempts_num); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applies also in some places below.
@@ -1640,13 +1647,13 @@ tx_stress_main_task_fn(void *arg) | |||
assert(rc == 0); | |||
|
|||
/* Start test 1 - Connect/Connect cancel */ | |||
//tx_stress_test_perform(1); | |||
/*tx_stress_test_perform(1); */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick
/*tx_stress_test_perform(1); */ | |
/* tx_stress_test_perform(1); */ |
This commit adds new enchancements to blestress app.
5db6719
to
590c588
Compare
This commit adds new enchancements to blestress app such as: