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

drivers/adt7310: Replace binary literal with hex literal #11450

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

fhessel
Copy link
Contributor

@fhessel fhessel commented Apr 25, 2019

Contribution description

This PR is related to PR #11352, where I suggest to add support for Linux' /dev/spidev devices to the native cpu. As discussed, enabling SPI causes the tests/driver_adt7310 test to be run with the gnu and llvm toolchain. With the current configuration, these toolchains don't like binary literals in the code and raise a warning/error.

So I suggest to change the binary literal for ADT7310_EXPECTED_MANUF_ID to a hexadecimal one, so that I can then rebase the other PR and the Murdock build will no longer fail for this test.

Testing procedure

I don't own an ADT7310 temperature sensor to test the change by myself, but I assume changing 0b1100000 to the equivalent 0bC0 in the code will have no impact besides removing compiler warnings. (The value is mentioned in table 10 of the datasheet)

Issues/PRs references

Required for PR #11352

Copy link
Contributor

@kaspar030 kaspar030 left a comment

Choose a reason for hiding this comment

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

ACK. Thx!

@kaspar030 kaspar030 added Area: drivers Area: Device drivers CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation labels Apr 25, 2019
@kaspar030 kaspar030 merged commit 5be3577 into RIOT-OS:master Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants