Skip to content

Commit d6f6309

Browse files
committed
change res to ret
1 parent 02b5f75 commit d6f6309

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

uart_sample.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static void serial_thread_entry(void *parameter)
5252

5353
static int uart_sample(int argc, char *argv[])
5454
{
55-
rt_err_t res = RT_EOK;
55+
rt_err_t ret = RT_EOK;
5656
char uart_name[RT_NAME_MAX];
5757
char str[] = "hello RT-Thread!\r\n";
5858

@@ -91,10 +91,10 @@ static int uart_sample(int argc, char *argv[])
9191
}
9292
else
9393
{
94-
res = RT_ERROR;
94+
ret = RT_ERROR;
9595
}
9696

97-
return res;
97+
return ret;
9898
}
9999
/* 导出到 msh 命令列表中 */
100100
MSH_CMD_EXPORT(uart_sample, uart device sample);

0 commit comments

Comments
 (0)