Skip to content

Conversation

@jerryneedell
Copy link

@jerryneedell jerryneedell commented Apr 16, 2018

There were often errors associated with prematurely cutting off the pulse train. Rather than depend on the exact number of incoming pulses, which varies depending on the timing of the start up, what for a timeout interval than always use the last 81 pulses received. This reduces the number of errors , especially on the faster M4 boards.

Also added a test to see if this was a dht11 and increased the delay between reads to 1 second as in the data sheet. dht22 uses .5 seconds

@jerryneedell jerryneedell requested a review from mrmcwethy April 16, 2018 13:09
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Please remove all of the commented out code. It's kept in the git history.

@jerryneedell
Copy link
Author

@mrmcwethy @tannewt Any concerns with this?

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you!

@tannewt tannewt merged commit ddda939 into adafruit:master Apr 20, 2018
@mrmcwethy
Copy link
Collaborator

@jerryneedell I looked at what you did and I agree with it. Nice job.

tannewt pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Apr 30, 2018
Updating https://github.com/adafruit/Adafruit_CircuitPython_DHT to 3.1.0 from 3.0.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_DHT#10 from jerryneedell/jerryn_negative
  > Merge pull request adafruit/Adafruit_CircuitPython_DHT#8 from jerryneedell/jerryn_dht
  > Merge pull request adafruit/Adafruit_CircuitPython_DHT#6 from sommersoft/new_docs
  > Merge pull request adafruit/Adafruit_CircuitPython_DHT#5 from sommersoft/new_docs
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.

3 participants