Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(esp_lcd_gc9a01): Missing field initializers and wrong order under C++ (BSP-610) #469

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

tajnymag
Copy link
Contributor

@tajnymag tajnymag commented Jan 3, 2025

ESP-BSP Pull Request checklist

Note: For new BSPs create a PR with this link.

  • Version of modified component bumped
  • CI passing

Change description

GC9A01_PANEL_BUS_SPI_CONFIG and GC9A01_PANEL_IO_SPI_CONFIG macros were causing project to fail to compile in under C++23 (ESP-IDF 5.3.2). I've added initializers with default values for each member and fixed field order in BUS_SPI_CONFIG.

@github-actions github-actions bot changed the title Fix(esp_lcd_gc9a01): Missing field initializers and wrong order under C++ Fix(esp_lcd_gc9a01): Missing field initializers and wrong order under C++ (BSP-610) Jan 3, 2025
Copy link
Collaborator

@tore-espressif tore-espressif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tajnymag Thank you for the fix! I left one comment about default values

components/lcd/esp_lcd_gc9a01/include/esp_lcd_gc9a01.h Outdated Show resolved Hide resolved
@tajnymag
Copy link
Contributor Author

tajnymag commented Jan 7, 2025

@tore-espressif I've set the pins to -1 as you said and tested the display working correctly. What should I do about the version bump, now being before the latest correcting commit.

Copy link
Collaborator

@espzav espzav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tore-espressif
Copy link
Collaborator

What should I do about the version bump, now being before the latest correcting commit.

It's OK, we can squash it before merging :)

@espzav espzav merged commit ac023c8 into espressif:master Jan 9, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants