Skip to content

Commit

Permalink
Merge pull request #21 from tidyjiang8/patch-2-bug-cli-time
Browse files Browse the repository at this point in the history
Fix the bug that CLI command 'time' always returns 0
  • Loading branch information
junjiec committed Oct 30, 2017
2 parents b2cdf83 + f112b26 commit 9131604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cli/cli.c
Expand Up @@ -639,7 +639,7 @@ static void reboot_cmd(char *buf, int len, int argc, char **argv)

static void uptime_cmd(char *buf, int len, int argc, char **argv)
{
aos_cli_printf("UP time %ldms\r\n", aos_now_ms());
aos_cli_printf("UP time %ld ms\r\n", (long)aos_now_ms());
}

void tftp_ota_thread(void *arg)
Expand Down

0 comments on commit 9131604

Please sign in to comment.