Skip to content

Commit

Permalink
fix: luat_bot_asset_status_get函数缺返回值类型
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Oct 24, 2024
1 parent 5fd3229 commit 03af7e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/antbot/binding/luat_lib_antbot.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,11 @@ static int luat_bot_data_publish(lua_State *L)
{
int ret = -1;
uint8_t *data;
size_t data_len;
int len;
size_t data_len = 0;

data = luaL_checklstring(L, 1, &data_len);
ret = bot_data_publish(data, data_len);

exit:
lua_pushinteger(L, ret);
return 1;
}
Expand All @@ -163,7 +161,7 @@ static int luat_bot_device_status_get(lua_State *L)
@string asset_id 资源ID
@return int 资源状态
*/
static luat_bot_asset_status_get(lua_State *L)
static int luat_bot_asset_status_get(lua_State *L)
{
int ret = -1;
if (!lua_isstring(L, 1)) {
Expand Down

0 comments on commit 03af7e9

Please sign in to comment.