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 <cezar@embeddedp.ro>
This commit is contained in:
parent
e01e2235d3
commit
27da68cfb2
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue