Skip to content

Commit

Permalink
client: Fix setting of advertisement interval
Browse files Browse the repository at this point in the history
This fixes incorrect argument read when using "interval" command
in "advertisement" submenu
  • Loading branch information
inga-s authored and Vudentz committed May 23, 2022
1 parent bbdd180 commit 79fe529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/main.c
Expand Up @@ -2768,7 +2768,7 @@ static void cmd_advertise_interval(int argc, char *argv[])
max = min;

if (argc > 2) {
max = strtol(argv[1], &endptr, 0);
max = strtol(argv[2], &endptr, 0);
if (!endptr || *endptr != '\0' || max < 20 || max > 10485) {
bt_shell_printf("Invalid argument\n");
return bt_shell_noninteractive_quit(EXIT_FAILURE);
Expand Down

0 comments on commit 79fe529

Please sign in to comment.