You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
../Middleware/eez-gui/Feira_GUI/src/ui/screens.c:355:85: error: invalid use of incomplete typedef 'lv_led_t'
355 | uint32_t cur_val = lv_color_to_u32(((lv_led_t *)objects.led_actuator_status)->color);
| ^~
../Middleware/eez-gui/Feira_GUI/src/ui/screens.c:364:82: error: invalid use of incomplete typedef 'lv_led_t'
To Reproduce
Steps to reproduce the behavior:
Add a LED to a screen
Create a variable for the LED Color (in my case of type int32_t)
Assign the LED Color to the variable
See error
Expected behavior
No error being generated by compiler
Workaround
Add this include on top of file screens.c
#include"lvgl/src/lvgl_private.h"
Not sure if we are suppose to use that include outside of LVGL internal code. The biggest problem may be that there is no API to get the current LED Color.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: [Windows 11]
Version [0.21.0]
Compiler: gcc version 10.3.1 20210824 (release) (GNU Arm Embedded Toolchain 10.3-2021.10)
** LVGL version (if used)**
9.x
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Thanks for the detailed analysis of the problem. I am aware of this problem from before and the LVGL project that uses EEZ Flow does indeed include this private header file, but I forgot to do the same in the project that does not use EEZ Flow.
As a workaround for now you can add this include in screens.c template file in Settings:
Describe the bug
Setting the LED color to be setup via a vatiable, the code generated cannot compile
Error generated:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error being generated by compiler
Workaround
Add this include on top of file
screens.c
Not sure if we are suppose to use that include outside of LVGL internal code. The biggest problem may be that there is no API to get the current LED Color.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
** LVGL version (if used)**
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: