nodemcu-firmware/app
Arnim Läuger ebd147b34f DHT11 read sometimes failed with checksum error (#2679)
* DHT11 read sometimes failed with checksum error.

The code assumed DHT11 devices only ever return zero in the temperature and humidity decimal fraction bytes. The datasheet doesn't guarantee this is the case, and by observation I have noticed that indeed the DHT11 may sometimes return another number, usually close to zero. This means that the code would fail with a checksum error, as the fraction bytes were not included when the checksum was calculated. These bytes are now taken into account and also returned as part of the measurement.

This also means that the related dht.read() function is non-functional. If you have a DHT11 device that returns a non-zero decimal part, dht.read() will interpret it as a DHT22 result and return the wrong measurement. For this reason dht.read() should be retired. This patch does not address this issue.
2019-02-23 22:03:21 +01:00
..
coap trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
crypto trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
dht DHT11 read sometimes failed with checksum error (#2679) 2019-02-23 22:03:21 +01:00
driver trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
esp-gdbstub trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
fatfs trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
http trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
include added MSVC project configuration for host-side tools (#2665) 2019-02-23 14:09:29 +00:00
libc trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
lua fixes #2677 minor syntax issues with some dummy variables that bracket the rodata section (#2678) 2019-02-23 20:49:30 +01:00
lwip trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
mbedtls trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
modules Raise MQTT_CONNECT_TIMEOUT (#2674) 2019-02-19 22:33:25 +01:00
mqtt trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
net trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
pcm trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
platform trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
pm trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
sjson Cleaned up sjson module build. 2017-07-03 13:35:45 +10:00
smart trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
spiffs trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
sqlite3 trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
task trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
tsl2561 trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
u8g2lib trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
ucglib Submodulify ucg and update to v1.5.2 (#2503) 2018-10-19 21:18:50 +01:00
user trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
uzlib added MSVC project configuration for host-side tools (#2665) 2019-02-23 14:09:29 +00:00
websocket trailing spaces cleanup (#2659) 2019-02-17 18:26:29 +00:00
.gitignore seperate user_config.h to speed-up compile when modules disabled/enabled 2015-03-06 11:59:04 +08:00
Makefile Always compile `app/crypto` folder (#2573) 2018-11-28 14:03:33 +01:00