diff options
author | Inga Stotland <inga.stotland@intel.com> | 2022-05-20 16:41:51 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-05-23 13:47:15 -0700 |
commit | 79fe529d64855e1e482d3c265d89b7bbe7c99ab9 (patch) | |
tree | 1cb05b913c3ae9bf456371122e78436039bd2b9b /client/main.c | |
parent | bbdd18089b45d99f1e5c34bcc27d69d5b3ecabbf (diff) | |
download | bluez-79fe529d64855e1e482d3c265d89b7bbe7c99ab9.tar.gz |
client: Fix setting of advertisement interval
This fixes incorrect argument read when using "interval" command
in "advertisement" submenu
Diffstat (limited to 'client/main.c')
-rw-r--r-- | client/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/main.c b/client/main.c index ccbfc620b..1df94f000 100644 --- a/client/main.c +++ b/client/main.c @@ -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); |