You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2019/06/11 16:30:18 UTC
[mynewt-nimble] 02/02: btshell: Use stack default intervals for
periodic advertising
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 8dec8a63d06b419ad5c988d832271cc77ff4125b
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Tue Jun 11 15:01:50 2019 +0200
btshell: Use stack default intervals for periodic advertising
If user doesn't provide periodic advertising intervals use stack
sane defaults instead of smallest allowed value.
---
apps/btshell/src/cmd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/btshell/src/cmd.c b/apps/btshell/src/cmd.c
index d1b6615..0b5d5a1 100644
--- a/apps/btshell/src/cmd.c
+++ b/apps/btshell/src/cmd.c
@@ -3615,7 +3615,7 @@ cmd_periodic_configure(int argc, char **argv)
return rc;
}
- params.itvl_min = parse_arg_uint32_dflt("interval_min", 6, &rc);
+ params.itvl_min = parse_arg_uint32_dflt("interval_min", 0, &rc);
if (rc != 0) {
console_printf("invalid 'interval_min' parameter\n");
return rc;
@@ -3700,7 +3700,7 @@ cmd_periodic_stop(int argc, char **argv)
#if MYNEWT_VAL(SHELL_CMD_HELP)
static const struct shell_param periodic_configure_params[] = {
{"instance", "default: 0"},
- {"interval_min", "usage: =[0-UINT32_MAX], default: 6"},
+ {"interval_min", "usage: =[0-UINT32_MAX], default: 0"},
{"interval_max", "usage: =[0-UINT32_MAX], default: interval_min"},
{"tx_power", "include TX power, usage: =[0-1], default: 0"},
{NULL, NULL}