diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-06-14 13:34:41 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-06-14 13:34:41 +1000 |
| commit | 5086ab96ea648cd842addb02b188f29bff7bbadd (patch) | |
| tree | 7a3579d655c906ace9e76c394c33eb164d7ce7aa /lib/luavgl/src/timer.c | |
| parent | 194f0e6b59259986b36448c376788c227d490f06 (diff) | |
| parent | 37ed3996017e43b343e4880981d70c4a6d4a5636 (diff) | |
| download | tangara-fw-5086ab96ea648cd842addb02b188f29bff7bbadd.tar.gz | |
Merge branch 'jqln/lvgl-bump'
Diffstat (limited to 'lib/luavgl/src/timer.c')
| -rw-r--r-- | lib/luavgl/src/timer.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/luavgl/src/timer.c b/lib/luavgl/src/timer.c index 4ee334ca..47b4a007 100644 --- a/lib/luavgl/src/timer.c +++ b/lib/luavgl/src/timer.c @@ -64,7 +64,7 @@ static int timer_set_para_cb(lua_State *L, void *data) int ret = luavgl_set_property(L, data, timer_property_table); if (ret != 0) { - debug("failed\n"); + LV_LOG_ERROR("failed"); } return ret; @@ -88,7 +88,7 @@ static int luavgl_timer_create(lua_State *L) { luavgl_timer_t *data = malloc(sizeof(luavgl_timer_t)); if (data == NULL) { - return luaL_error(L, "No memory."); + return luaL_error(L, "No memory"); } data->ref = LUA_NOREF; data->L = L; @@ -119,7 +119,7 @@ static int luavgl_timer_set(lua_State *L) { lv_timer_t *t = luavgl_check_timer(L, 1); if (t == NULL) { - return luaL_argerror(L, 1, "timer is null."); + return luaL_argerror(L, 1, "timer is null"); } luavgl_timer_setup(L, 2, t); @@ -130,7 +130,7 @@ static int luavgl_timer_ready(lua_State *L) { lv_timer_t *t = luavgl_check_timer(L, 1); if (t == NULL) { - return luaL_argerror(L, 1, "timer is null."); + return luaL_argerror(L, 1, "timer is null"); } lv_timer_ready(t); @@ -141,7 +141,7 @@ static int luavgl_timer_resume(lua_State *L) { lv_timer_t *t = luavgl_check_timer(L, 1); if (t == NULL) { - return luaL_argerror(L, 1, "timer is null."); + return luaL_argerror(L, 1, "timer is null"); } lv_timer_resume(t); @@ -152,7 +152,7 @@ static int luavgl_timer_pause(lua_State *L) { lv_timer_t *t = luavgl_check_timer(L, 1); if (t == NULL) { - return luaL_argerror(L, 1, "timer is null."); + return luaL_argerror(L, 1, "timer is null"); } lv_timer_pause(t); @@ -165,7 +165,7 @@ static int luavgl_timer_delete(lua_State *L) { lv_timer_t *t = luavgl_check_timer(L, 1); if (t == NULL) { - return luaL_argerror(L, 1, "timer is null."); + return luaL_argerror(L, 1, "timer is null"); } luavgl_timer_t *data = t->user_data; @@ -181,7 +181,7 @@ static int luavgl_timer_delete(lua_State *L) /* we can only release memory in gc, since we need t->use_data */ lv_timer_pause(t); - debug("delete timer:%p\n", t); + LV_LOG_INFO("delete timer:%p", t); return 0; } @@ -194,7 +194,7 @@ static int luavgl_timer_gc(lua_State *L) free(t->user_data); lv_timer_del(t); - debug("gc timer:%p\n", t); + LV_LOG_INFO("gc timer:%p", t); return 0; } |
