Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Back to working version by removing the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
beegee-tokyo committed Oct 6, 2019
1 parent 53b1b34 commit c25875a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions DHTesp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ void DHTesp::readSensor()
#endif
return;
}
delay(5);
} while (digitalRead(pin) == (i & 1) ? HIGH : LOW);

if (i >= 0 && (i & 1))
Expand Down Expand Up @@ -289,8 +288,8 @@ void DHTesp::readSensor()

if (model == DHT11)
{
humidity = (rawHumidity >> 8) + ((rawHumidity & 0x00FF) * 0.1);
temperature = (rawTemperature >> 8) + ((rawTemperature & 0x00FF) * 0.1) ;
humidity = (rawHumidity >> 8) + ((rawHumidity & 0x00FF) * 0.1);
temperature = (rawTemperature >> 8) + ((rawTemperature & 0x00FF) * 0.1);
}
else
{
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Changes to the original library:
- 2019-07-31: Make getPin() public, Updated ESP8266 example
- 2019-10-01: Using noInterrupts() & interrupts() instead of cli and sei
- 2019-10-05: Reduce CPU usage and add decimal part for DHT11 (thanks to Swiftyhu)
- 2019-10-06: Back to working version by removing the last commit

Features
--------
Expand Down
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "DHT sensor library for ESPx",
"keywords": "onewire, 1-wire, bus, sensor, temperature",
"description": "Arduino ESP library for DHT11, DHT22, etc Temp & Humidity Sensors. Last changes: Reduce CPU usage and add decimal part for DHT11",
"description": "Arduino ESP library for DHT11, DHT22, etc Temp & Humidity Sensors. Last changes: Back to working version by removing the last commit",
"repository": {
"type": "git",
"url": "https://github.com/beegee-tokyo/DHTesp.git"
},
"version": "1.16",
"version": "1.17",
"frameworks": "arduino",
"platforms": [
"espressif8266",
Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name=DHT sensor library for ESPx
version=1.16
version=1.17
author=beegee_tokyo
maintainer=beegee_tokyo <[email protected]>
sentence=Arduino ESP library for DHT11, DHT22, etc Temp & Humidity Sensors
paragraph=Optimized libray to match ESP32 requirements. Last changes: Reduce CPU usage and add decimal part for DHT11
paragraph=Optimized libray to match ESP32 requirements. Last changes: Back to working version by removing the last commit
category=Sensors
url=http://desire.giesecke.tk/index.php/2018/01/30/esp32-dht11/
architectures=esp8266,esp32,samd,avr
Expand Down

0 comments on commit c25875a

Please sign in to comment.