feat(lua): support for using LVGL objects on colorlcd (#4887)
This commit is contained in:
@@ -2165,7 +2165,15 @@ Get percent of already used Lua instructions in current script execution cycle.
|
||||
*/
|
||||
static int luaGetUsage(lua_State * L)
|
||||
{
|
||||
#if defined(COLORLCD)
|
||||
if (luaLvglManager && luaLvglManager->useLvglLayout()) {
|
||||
lua_pushinteger(L, luaLvglManager->refreshInstructionsPercent);
|
||||
} else {
|
||||
lua_pushinteger(L, instructionsPercent);
|
||||
}
|
||||
#else
|
||||
lua_pushinteger(L, instructionsPercent);
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user