1.修复i2c应答错误。2.修复msh文档获取参数索引错误。
This commit is contained in:
@@ -85,9 +85,9 @@ char *p = MR_MSH_GET_ARG(index);
|
||||
## 使用示例:
|
||||
|
||||
```c
|
||||
int hello_fn(int argc, void *argv)
|
||||
void hello_fn(int argc, void *argv)
|
||||
{
|
||||
for (size_t i = 0; i < argc; i++)
|
||||
for (size_t i = 1; i <= argc; i++)
|
||||
{
|
||||
mr_msh_printf("hello %s\r\n", MR_MSH_GET_ARG(i));
|
||||
}
|
||||
|
||||
@@ -87,9 +87,9 @@ char *p = MR_MSH_GET_ARG(index);
|
||||
## Usage Example:
|
||||
|
||||
```c
|
||||
int hello_fn(int argc, void *argv)
|
||||
void hello_fn(int argc, void *argv)
|
||||
{
|
||||
for (size_t i = 0; i < argc; i++)
|
||||
for (size_t i = 1; i <= argc; i++)
|
||||
{
|
||||
mr_msh_printf("hello %s\r\n", MR_MSH_GET_ARG(i));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user