Skip to content

Sensor values mix up when using multiple sensors #18

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 2 commits into from
Dec 18, 2018

Conversation

beegee-tokyo
Copy link
Contributor

When using 2 (or more) sensors on the same device the sensor values read from the sensors can get mixed up.
The struct sense is defined as a global and is reused from multiple instances of the MAX30105 class.

Solution:
Declare sense as class private

When using 2 (or more) sensors on the same device the sensor values read from the sensors can get mixed up.
The struct sense is defined as a global and is reused from multiple instances of the MAX30105 class.

Solution:
Declare sense as class private:
When using 2 (or more) sensors on the same device the sensor values read from the sensors can get mixed up.
The struct sense is defined as a global and is reused from multiple instances of the MAX30105 class.

Solution:
Declare sense as class private:
@nseidle
Copy link
Member

nseidle commented Dec 18, 2018

Good find and excellent fix. Thank you for the PR.

@nseidle nseidle merged commit c2e059f into sparkfun:master Dec 18, 2018
@nseidle
Copy link
Member

nseidle commented Dec 18, 2018

Pulled into v1.1.0. Thanks!

@beegee-tokyo
Copy link
Contributor Author

Glad I could help.

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