-
-
Notifications
You must be signed in to change notification settings - Fork 732
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
Zipping compiler warning about POW_PD_EXT / Two options #1711
Conversation
Option 1 is preferable; as I suspect that in the future we will have to support other "external" USB-PD controllers (knowing my luck). Just guessing from looking at the market, with people moving to dedicated controllers rather than getting a PD stack working. |
#else | ||
#define FLASH_LOGOADDR (0x08000000 + (62 * 1024)) | ||
#endif | ||
#endif /* TS80P */ | ||
|
||
#ifdef MODEL_TS101 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't you find this way more readable? If no, I will revert it without a question.
Here it doesn't show the idea of modification properly - just in case, for easier review that's what I did. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this is a fine cleanup
#endif /* TS101 */ | ||
|
||
#endif /* CONFIGURATION_H_ */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may not understanding some particularities so correct me if I'm wrong but shouldn't endif
for include
-guard be in the very end of the file, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah thats a mistake
And shouldn't this line be more like this: Sorry for pedantry, just trying to help & be useful. The more eyes the better, right? |
Ill fix the oled shadowing later today; would like to keep it out of this PR |
#define POW_PD_EXT 0
to everyconfiguration.h
header file.#if POW_PD_EXT == 1
to#ifdef POW_PD_EXT
.In my opinion Option B is more preferable ... unless there are some pitfalls and the actual value (0/1) must be checked.