Explorar o código

!75 fix: 修复sensor文档中的错误API名字
Merge pull request !75 from sgl/fix_sensor_doc

Dozingfiretruck %!s(int64=4) %!d(string=hai) anos
pai
achega
9ff09cf320
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      luat/modules/luat_lib_sensor.c

+ 1 - 1
luat/modules/luat_lib_sensor.c

@@ -277,7 +277,7 @@ static int l_w1_reset(lua_State *L)
 
 /*
 单总线协议,连接设备
-@api    sensor.w1_reset(pin)
+@api    sensor.w1_connect(pin)
 @int  gpio端口号
 @return boolean 成功返回true,失败返回false
 */