Skip to content

Commit

Permalink
fix: i2c库的luat_i2c_read_reg编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Feb 26, 2020
1 parent 4dc25e5 commit 92bc63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luat/rtt/luat_i2c_rtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ int luat_i2c_write_reg(int id, int addr, int reg, void* buff, size_t len) {
}
int luat_i2c_read_reg(int id, int addr, void* buff, size_t len) {
if (!luat_i2c_exist(id)) return 1;
return read_reg(i2c_devs[id], addr, buff, len);
return read_regs(i2c_devs[id], addr, buff, len);
}

#endif

0 comments on commit 92bc63e

Please sign in to comment.