Browse Source

del:luat_i2c_setup接口废弃slaveaddr参数

Dozingfiretruck 3 years ago
parent
commit
8479331c84
1 changed files with 1 additions and 1 deletions
  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