Skip to content

Pretty up sensor identification output for debugging. #19

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

Conversation

dhebbeker
Copy link
Contributor

Use existing preprocessor macros instead of "magic numbers" as register index.

Also the last read, seems to address a 2 byte (word) register. Thus probably the module ID was meat to be read, instead of the model ID, which is only 1 byte.

The definitions for the preprocessor macros are in this line and following.

Use existing preprocessor macros instead of "magic numbers" as register index.

Also the last read, seems to address a 2 byte (word) register. Thus probably the *module* ID was meat to be read, instead of the *model* ID, which is only 1 byte.
@cparata
Copy link
Contributor

cparata commented May 3, 2021

I agree, I will integrate the PR. Thanks a lot for contribution!

@cparata cparata merged commit 519a300 into stm32duino:master May 3, 2021
@dhebbeker dhebbeker deleted the feature/debug-sensor-identification branch May 3, 2021 10:52
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.

2 participants