Просмотр исходного кода

Merge branch 'master' of gitee.com:openLuat/LuatOS

Wendal Chen 4 лет назад
Родитель
Сommit
4dafff9759

+ 2 - 1
.github/workflows/air101.yml

@@ -31,8 +31,9 @@ jobs:
       env:
         AIR101REPO: ${{ secrets.AIR101REPO }}
       run: |
+        sudo sh -c "curl https://raw.githubusercontent.com/kadwanev/retry/master/retry -o /usr/local/bin/retry && chmod +x /usr/local/bin/retry"
         cd ..
-        git clone --depth=1 --branch=master ${AIR101REPO} air101
+        retry 'git clone --depth=1 --branch=master ${AIR101REPO} air101'
     - name: make
       run: |
         cd ../air101

+ 1 - 1
components/sfd/luat_lib_sfd.c

@@ -128,7 +128,7 @@ static int l_sfd_write(lua_State *L) {
 }
 
 /*
-写入数据
+擦除数据
 @api    sfd.erase(drv, offset)
 @userdata  sfd.init返回的数据结构
 @int    起始偏移量

+ 1 - 1
luat/modules/luat_lib_i2c.c

@@ -283,7 +283,7 @@ i2c接收数据
 @api i2c.recv(id, addr, len)
 @int 设备id, 例如i2c1的id为1, i2c2的id为2
 @int I2C子设备的地址, 7位地址
-@int 手机数据的长度
+@int 接收数据的长度
 @return string 收到的数据
 @usage
 -- 从i2c1读取2个字节的数据

+ 1 - 1
luat/modules/luat_lib_rtc.c

@@ -228,7 +228,7 @@ static int l_rtc_timer_start(lua_State *L){
 
 /*
 取消RTC唤醒时间
-@api rtc.timerStop(id, tab)
+@api rtc.timerStop(id)
 @int 时钟id,通常只支持0
 @return bool 成功返回true,否则返回nil或false
 @usage