This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push: new f8811ea examples/watchdog: Fix watchdog command parameter error f8811ea is described below commit f8811eab38b39371b597800d5a44e08df1e54f0f Author: SunJ <j...@bouffalolab.com> AuthorDate: Thu Mar 17 18:18:10 2022 +0800 examples/watchdog: Fix watchdog command parameter error --- examples/watchdog/watchdog_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/watchdog/watchdog_main.c b/examples/watchdog/watchdog_main.c index 6a2c088..d65b553 100644 --- a/examples/watchdog/watchdog_main.c +++ b/examples/watchdog/watchdog_main.c @@ -149,7 +149,7 @@ static void parse_args(FAR struct wdog_example_s *wdog, int argc, switch (ptr[1]) { - case 'd': + case 'p': nargs = arg_decimal(&argv[index], &value); if (value < 1) { @@ -167,7 +167,7 @@ static void parse_args(FAR struct wdog_example_s *wdog, int argc, index += nargs; break; - case 'p': + case 'd': nargs = arg_decimal(&argv[index], &value); if (value < 1 || value > INT_MAX) {