From 611176ed667c4ed7ee9f609e958f9404f4aee91d Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 12 Jun 2024 17:54:10 +1000 Subject: Port and fix our luavgl additions --- lib/luavgl/src/widgets/btn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/luavgl/src/widgets/btn.c') diff --git a/lib/luavgl/src/widgets/btn.c b/lib/luavgl/src/widgets/btn.c index 848b0b45..c07afbdb 100644 --- a/lib/luavgl/src/widgets/btn.c +++ b/lib/luavgl/src/widgets/btn.c @@ -12,7 +12,7 @@ LUALIB_API int luavgl_btn_set_property_kv(lua_State *L, void *data) /* a base obj property? */ int ret = luavgl_obj_set_property_kv(L, obj); if (ret != 0) { - debug("unkown property for btn.\n"); + LV_LOG_ERROR("unkown property for btn.\n"); } return ret; @@ -46,7 +46,7 @@ static const luaL_Reg luavgl_btn_methods[] = { static void luavgl_btn_init(lua_State *L) { - luavgl_obj_newmetatable(L, &lv_btn_class, "lv_btn", luavgl_btn_methods); + luavgl_obj_newmetatable(L, &lv_button_class, "lv_btn", luavgl_btn_methods); lua_pushcfunction(L, luavgl_btn_tostring); lua_setfield(L, -2, "__tostring"); lua_pop(L, 1); -- cgit v1.2.3