Skip to content

Commit

Permalink
update: mlx90640.init拦截非法的i2c初始化参数
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Sep 21, 2023
1 parent 1e990b8 commit 706fb7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/mlx90640-library/luat_lib_mlx90640.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ static int l_mlx90640_init(lua_State *L){
}else if (lua_isuserdata(L, 1)){
mlx90640_i2c.ei2c = toei2c(L);
}
else {
LLOGE("bad i2c arg!!!");
return 0;
}
mlx90640_refresh_rate = luaL_optinteger(L, 2 , FPS4HZ);
lcd_conf = luat_lcd_get_default();

Expand Down

0 comments on commit 706fb7c

Please sign in to comment.