1.修复i2c应答错误。2.修复msh文档获取参数索引错误。

This commit is contained in:
MacRsh
2024-02-04 17:50:09 +08:00
parent 7ab4df6582
commit 85360e3470
5 changed files with 17 additions and 18 deletions

View File

@@ -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));
}

View File

@@ -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));
}