From c25875ae1ab726644ebbd49c06abe30c3e91681f Mon Sep 17 00:00:00 2001 From: Bernd Giesecke Date: Sun, 6 Oct 2019 14:31:30 +0800 Subject: [PATCH] Back to working version by removing the last commit --- DHTesp.cpp | 5 ++--- README.md | 1 + library.json | 4 ++-- library.properties | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/DHTesp.cpp b/DHTesp.cpp index 683ccd8..fe585e8 100644 --- a/DHTesp.cpp +++ b/DHTesp.cpp @@ -243,7 +243,6 @@ void DHTesp::readSensor() #endif return; } - delay(5); } while (digitalRead(pin) == (i & 1) ? HIGH : LOW); if (i >= 0 && (i & 1)) @@ -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 { diff --git a/README.md b/README.md index 98c0221..83fb36b 100644 --- a/README.md +++ b/README.md @@ -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 -------- diff --git a/library.json b/library.json index 6d041f2..24d7fe7 100644 --- a/library.json +++ b/library.json @@ -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", diff --git a/library.properties b/library.properties index 275b173..f238fa4 100644 --- a/library.properties +++ b/library.properties @@ -1,9 +1,9 @@ name=DHT sensor library for ESPx -version=1.16 +version=1.17 author=beegee_tokyo maintainer=beegee_tokyo 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