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

Edit exit() function #6

Open
wants to merge 87 commits into
base: master
Choose a base branch
from
Open

Edit exit() function #6

wants to merge 87 commits into from

Conversation

SecT0uch
Copy link

Hi,
The print() in exit() function was polluting stdout, I removed it.

tdicola and others added 30 commits October 20, 2017 14:04
Added pylint to build process and update .py files
 modified get_pulses to reduce errors
 fix DHT22 handling of negative temperatures
ladyada and others added 29 commits January 4, 2020 21:33
Moved repository from Travis to GitHub Actions
Signed-off-by: sommersoft <[email protected]>
Currently, we update self._temperature and self._humidity, even if it
turns out that the data returned by the sensor was bogus. If the user
queries the data within two seconds after an error, they will actually
get wrong data.

Fix this by updating _temperature and _humidity attributes only if no
error was detected.
Black reformatting with Python 3 target.
Right now, pulse_in is active until the first reading and only paused
after that. Let's immediately pause it to free up the CPU.
Deinitialize pulsein object on exit, gave option to choose whether or not to use pulseio
Immediately pause pulse_in after initialization
This was polluting stdout
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.