Explorar o código

del:luat_i2c_setup接口废弃slaveaddr参数

Dozingfiretruck %!s(int64=3) %!d(string=hai) anos
pai
achega
8479331c84
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/port/luat_i2c_air101.c

+ 1 - 1
app/port/luat_i2c_air101.c

@@ -14,7 +14,7 @@ int luat_i2c_exist(int id) {
     return id == 0;
 }
 
-int luat_i2c_setup(int id, int speed, int slaveaddr) {
+int luat_i2c_setup(int id, int speed) {
     //if (luat_i2c_exist(id) != 0) return -1;
     if (speed == 0)
         speed = 100 * 1000; // SLOW