From 27da68cfb2049f270221229381d5bfddef3ed0f7 Mon Sep 17 00:00:00 2001 From: Cezar Burlacu Date: Sun, 20 Mar 2022 15:19:02 +0200 Subject: [PATCH] hwinfo shell: reset_cause fix `reset_cause` with no arguments will print the device id. Change it to print the reset cause. Tested on nucleo_f767zi. Signed-off-by: Cezar Burlacu --- drivers/hwinfo/hwinfo_shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwinfo/hwinfo_shell.c b/drivers/hwinfo/hwinfo_shell.c index 58cf71077af..4b96b930d5e 100644 --- a/drivers/hwinfo/hwinfo_shell.c +++ b/drivers/hwinfo/hwinfo_shell.c @@ -180,7 +180,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(sub_reset_cause, SHELL_STATIC_SUBCMD_SET_CREATE(sub_hwinfo, SHELL_CMD_ARG(devid, NULL, "Show device id", cmd_get_device_id, 1, 0), SHELL_CMD_ARG(reset_cause, &sub_reset_cause, "Reset cause commands", - cmd_get_device_id, 1, 0), + cmd_show_reset_cause, 1, 0), SHELL_SUBCMD_SET_END /* Array terminated. */ );