From 3c5d476f845fbb53083ff8740c7ef1bbf877fcd4 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 30 Jan 2018 11:27:15 +0100 Subject: [PATCH 1/2] shell_commands: specify SNTP timeout time unit --- sys/shell/commands/sc_sntp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/shell/commands/sc_sntp.c b/sys/shell/commands/sc_sntp.c index 9b70de140d..aff1d3f49d 100644 --- a/sys/shell/commands/sc_sntp.c +++ b/sys/shell/commands/sc_sntp.c @@ -31,7 +31,7 @@ static void _usage(char *cmd) { - printf("Usage: %s [%%] []\n", cmd); + printf("Usage: %s [%%] []\n", cmd); puts("default: timeout = 5000"); } From e6fa76e9b05af74243aade1d0388acd338dc5989 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 30 Jan 2018 11:28:37 +0100 Subject: [PATCH 2/2] shell_commands: sntp: increase default timeout --- sys/shell/commands/sc_sntp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/shell/commands/sc_sntp.c b/sys/shell/commands/sc_sntp.c index aff1d3f49d..5e4bc0da10 100644 --- a/sys/shell/commands/sc_sntp.c +++ b/sys/shell/commands/sc_sntp.c @@ -27,12 +27,12 @@ #include "net/ipv6/addr.h" #include "timex.h" -#define _DEFAULT_TIMEOUT (5000U); +#define _DEFAULT_TIMEOUT (500000LU) static void _usage(char *cmd) { printf("Usage: %s [%%] []\n", cmd); - puts("default: timeout = 5000"); + printf("default: timeout = %lu\n", _DEFAULT_TIMEOUT); } int _ntpdate(int argc, char **argv)