Skip to content

Fix orientation config define #93

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

Merged
merged 2 commits into from
Aug 25, 2021
Merged

Fix orientation config define #93

merged 2 commits into from
Aug 25, 2021

Conversation

sidwarkd
Copy link
Contributor

The jd79653a.c file will not compile out of the box because the Kconfig define naming doesn't match the ifdef statements in the source file. This change fixes that.

@tore-espressif
Copy link
Collaborator

This was merged only 1 month ago: #78

We need to agree on the LV prefixes before we change it again @C47D

@sidwarkd
Copy link
Contributor Author

sidwarkd commented Aug 2, 2021

@tore-espressif @C47D It appears to me the prefix naming convention was already agreed upon as these orientation ones are the only ones in the Kconfig file that didn't have the LV_ prefix. The reason I found the issue is because the JD79653A driver didn't compile correctly because it looks for LV_ prefixed orientation settings. My guess is that @jsmestad had the opposite issue where whatever driver he is using was looking for non-prefixed defines and these settings were previously prefixed. My suggestion would have been to leave the defines named as before and correct the driver code.

It doesn't really matter to me which prefix convention you would like to use. If this change isn't merged then a different PR should be created to fix the JD7 driver to look for the defines as currently named. However, again, every other config option appears to have the LV_ prefix accept for the orientation ones changed by #78 . So if it's decided to move forward with the LV_ naming convention then we need to search the entire codebase for usages and correct them. Just let me know what you decide and I can either close this PR or move forward with the setting renaming.

@tore-espressif
Copy link
Collaborator

tore-espressif commented Aug 9, 2021

OK, let's go with the LV prefixed version.

The non-prefixed orientation symbols are left only in ssd1306.c and Kconfig files.

@sidwarkd could you complete this PR?

@sidwarkd
Copy link
Contributor Author

@tore-espressif Yes, I'll update this PR in the next day or two

@sidwarkd
Copy link
Contributor Author

@tore-espressif This PR is ready for review now. Let me know if anything needs to be changed.

@tore-espressif tore-espressif added this to the Release 1.0.0 milestone Aug 13, 2021
@tore-espressif
Copy link
Collaborator

LGTM!
@C47D do you mind having another look?

@C47D
Copy link
Collaborator

C47D commented Aug 25, 2021

Looks good to me as well, thanks for the fix @sidwarkd , hopefully this is the last time we try to fix this issue 😅

@C47D C47D merged commit dd09b4d into lvgl:master Aug 25, 2021
@sidwarkd sidwarkd deleted the patch-1 branch August 25, 2021 18:13
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