shell: kernel: fix sleep command
Was trying to parse the second argument instead of the first one. Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
This commit is contained in:
parent
975fd4787b
commit
1d0692b2f7
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ static int cmd_kernel_sleep(const struct shell *sh,
|
|||
uint32_t ms;
|
||||
int err = 0;
|
||||
|
||||
ms = shell_strtoul(argv[2], 10, &err);
|
||||
ms = shell_strtoul(argv[1], 10, &err);
|
||||
|
||||
if (!err) {
|
||||
k_msleep(ms);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue