-
Notifications
You must be signed in to change notification settings - Fork 3k
Don't use define checks on DEVICE_FOO macros (partner code) #9163
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
Conversation
...RGET_STM32F439xI/TARGET_MODULE_UBLOX_ODIN_W2/sdk/ublox-odin-w2-drivers/OdinWiFiInterface.cpp
Show resolved
Hide resolved
@MarceloSalazar @screamerbg @ashok-rao Please add any other partners for review if needed. |
targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF51/TARGET_MCU_NRF51822_UNIFIED/analogin_api.c
Show resolved
Hide resolved
cc46d70
to
f94ffcd
Compare
The DEVICE_FOO macros are always defined (either 0 or 1). This patch replaces any instances of a define check on a DEVICE_FOO macro with value test instead. Signed-off-by: Alastair D'Silva <[email protected]>
f94ffcd
to
aa80b7c
Compare
We would like to proceed with this PR after this week, please review |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Will wait until beginning of next week to merge, to give additional partners time to review/ok. |
Time to merge this |
Description
Continuation of #8957 (partner components).
The DEVICE_FOO macros are predefined to be 0 or 1. There are a number of instances which incorrectly check if they are defined, rather than checking the value.
This PR addresses most (if not all) of these incorrect checks.
Fixes #8913
Pull request type