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

Adjust SGP30 init to not call IAQinit unnecessarily #600

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Conversation

tyeth
Copy link
Contributor

@tyeth tyeth commented Jul 1, 2024

Minor tweak to the SGP30 initialisation to fail if IAQ doesn't initialise successfully instead of ignoring it.
Needs retesting - was in the way on another branch

Updated PR to be for the removal of the IAQinit call, as it's called here https://github.com/adafruit/Adafruit_SGP30/blob/b4a631b1d75996a4dc2b1dda07e02a8529365d33/Adafruit_SGP30.cpp#L73

@tyeth
Copy link
Contributor Author

tyeth commented Sep 24, 2024

Just read this through and we don't need to call IAQinit as begin does that for us. Will adjust this PR for that instead.

@tyeth tyeth changed the title Adjust SGP30 init to return failure to initialise IAQ Adjust SGP30 init to not call IAQinit unnecessarily Sep 24, 2024
@tyeth tyeth force-pushed the tweak-sgp30-init branch 2 times, most recently from 527f4e7 to b8d5705 Compare September 24, 2024 16:07
@tyeth tyeth requested a review from brentru September 24, 2024 16:58
@tyeth
Copy link
Contributor Author

tyeth commented Sep 24, 2024

@brentru This is ready for review

Copy link
Member

@brentru brentru left a comment

Choose a reason for hiding this comment

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

LGTM

@tyeth tyeth merged commit 06427ff into main Sep 24, 2024
33 checks passed
@tyeth tyeth deleted the tweak-sgp30-init branch September 24, 2024 18:30
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