Skip to content

Fixed hang due to consecutive read tempurature #1

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 1 commit into from
Aug 28, 2019

Conversation

Rocketct
Copy link
Contributor

fix the hang issue due to consecutive reads of the temperature register

porting of arduino-libraries/Arduino_MKRENV#6

cc:\ @sandeepmistry : tested on MKRENV shield seem the in this way the issue is fixed

@Rocketct Rocketct requested a review from sandeepmistry August 27, 2019 12:35
@Rocketct Rocketct force-pushed the master branch 2 times, most recently from eb7cc68 to 53a1ebb Compare August 28, 2019 14:18
src/HTS.cpp Outdated
@@ -72,6 +72,9 @@ void HTS221Class::end()

float HTS221Class::readTemperature(int units)
{
// Wait for ONE_SHOT bit to be cleared by the hardware
while (HTS221_CTRL2_REG) & 0x01);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is incorrect. shouldn't it be wrapped in i2cRead(HTS221_CTRL2_REG) ?

Copy link
Contributor

@sandeepmistry sandeepmistry left a comment

Choose a reason for hiding this comment

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

see comment.

fix the hang issue due to consecutive reads of the temperature register

porting of arduino-libraries/Arduino_MKRENV#6
@Rocketct Rocketct merged commit 0f309b2 into arduino-libraries:master Aug 28, 2019
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