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

add timout to PWM measure #1

Open
rafalmag opened this issue Jun 8, 2018 · 0 comments
Open

add timout to PWM measure #1

rafalmag opened this issue Jun 8, 2018 · 0 comments

Comments

@rafalmag
Copy link
Owner

rafalmag commented Jun 8, 2018

During PWM measure the inflinite wait might occur in the methods:

int Co2FromPwm::waitUntilLow(uint8_t pin)
int Co2FromPwm::waitUntilHigh(uint8_t pin)

eg. when the sensor is disconnected.

Some timeout should be added there to fail fast.

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

No branches or pull requests

1 participant