Skip to content

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

Merged
merged 1 commit into from
Jan 7, 2019

Conversation

deece
Copy link
Contributor

@deece deece commented Dec 19, 2018

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

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

@cmonr
Copy link
Contributor

cmonr commented Dec 19, 2018

@MarceloSalazar @screamerbg @ashok-rao Please add any other partners for review if needed.

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]>
@0xc0170
Copy link
Contributor

0xc0170 commented Jan 2, 2019

We would like to proceed with this PR after this week, please review

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 3, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Jan 3, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

@cmonr cmonr added parked and removed needs: CI labels Jan 3, 2019
@cmonr
Copy link
Contributor

cmonr commented Jan 3, 2019

We would like to proceed with this PR after this week, please review

Will wait until beginning of next week to merge, to give additional partners time to review/ok.

@0xc0170 0xc0170 removed the parked label Jan 7, 2019
@0xc0170
Copy link
Contributor

0xc0170 commented Jan 7, 2019

Time to merge this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants