esp-iot-solution
esp-iot-solution copied to clipboard
EK79007 driver chained designators not compatible with C++ (AEGHB-956)
Answers checklist.
- [X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- [X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- [X] I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v5.3.1
Espressif SoC revision.
ESP32-P4
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-P4-Function-EV-Board
Steps to reproduce.
- Create project from example
- Change project main file to .cpp
- Include the espressif/esp_lcd_ek79007 idf dependancy
- Add code from the example in the dependancy
- Build
The build fails when invoking EK79007_1024_600_PANEL_60HZ_CONFIG(). Should be fixable by un-nesting this line.
Build Logs.
No response
More Information.
No response
Hi, @sssata . C++ does not fully support this C-specific initialisation syntax. You can follow follow this EK79007_1024_600_PANEL_60HZ_CONFIG to expand initialise each item in esp_lcd_dpi_panel_config_t separately.