Skip to content

fix(color): add error handling for Lua LVGL object creation#7215

Merged
pfeerick merged 2 commits intomainfrom
philmoz/lua-fixes-and-error-handling
Mar 27, 2026
Merged

fix(color): add error handling for Lua LVGL object creation#7215
pfeerick merged 2 commits intomainfrom
philmoz/lua-fixes-and-error-handling

Conversation

@philmoz
Copy link
Copy Markdown
Collaborator

@philmoz philmoz commented Mar 24, 2026

Add checks when creating lvgl objects and throw errors on bad type or property.
Also:

  • Use LUA_REFNIL consistently in Lua interface
  • Remove redundant code and unused buffer

Applies to 2.11, 2.12 and 3.0.

@philmoz philmoz added this to the 2.11.6 milestone Mar 24, 2026
@philmoz philmoz added color Related generally to color LCD radios lua-api Lua API related labels Mar 24, 2026
@philmoz philmoz changed the title fxi(color,Lua): add error handling for Lua lvgl object creation fix(color,Lua): add error handling for Lua lvgl object creation Mar 24, 2026
@pfeerick pfeerick changed the title fix(color,Lua): add error handling for Lua lvgl object creation fix(color): add error handling for Lua LVGL object creation Mar 25, 2026
philmoz added 2 commits March 27, 2026 10:04
@philmoz philmoz force-pushed the philmoz/lua-fixes-and-error-handling branch from 21b99c6 to 0a755ae Compare March 26, 2026 23:04
@philmoz
Copy link
Copy Markdown
Collaborator Author

philmoz commented Mar 26, 2026

Added a fix for vertical alignment not working as expected for labels.

@pfeerick pfeerick merged commit 3256570 into main Mar 27, 2026
37 checks passed
@pfeerick pfeerick deleted the philmoz/lua-fixes-and-error-handling branch March 27, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

color Related generally to color LCD radios lua-api Lua API related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants