nodemcu-firmware/app
Emdioh bf15299cea
Correct negative results in DHT driver (#3210)
* DHT module: fix the handling of negative temps.

The macro handling the conversion from the 2 bytes buffer to a double
was handling negative values by checking the sign bit and taking the
negative value of the number minus the sign bit.
Unfortunately this does not work as the negative values are represented
in 1's complement, so for instance -1 was becoming -32767
  * +1 = b0000_0000_0000_ 0001
  * -1 = 1111_1111_1111_1111

This replace the spacial code with a signed 16 bits value.

* Refactoring: removes some code duplication.

* Fixed the conversion of the 8/16 bits values

Co-authored-by: Marco Dondero <marco@dondero.eu>
2020-08-03 19:58:19 +01:00
..
coap Squashed updates do get Lua51 and Lua53 working (#3075) 2020-06-09 22:26:52 +02:00
crypto SSL rampage (#2938) 2020-06-09 22:26:06 +02:00
dht Correct negative results in DHT driver (#3210) 2020-08-03 19:58:19 +01:00
driver Squashed updates do get Lua51 and Lua53 working (#3075) 2020-06-09 22:26:52 +02:00
esp-gdbstub Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
fatfs Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
http Fix binary and chunked HTTP downloads (#2985) 2020-06-09 22:26:52 +02:00
include Remove deprecated rc module 2020-06-10 02:15:08 +01:00
libc Fix of string.format("%.0f") (#3199) 2020-07-07 14:35:37 +01:00
lua Implement panic call handling for all modules (#3163) 2020-06-16 08:19:55 +01:00
lua53 Implement panic call handling for all modules (#3163) 2020-06-16 08:19:55 +01:00
lwip Networking rampage and accumulated fixes (#3060) 2020-06-09 22:26:52 +02:00
mbedtls tls: fix new verification API 2020-06-09 22:26:52 +02:00
modules Fixed an regression that MQTT client timer is disarmed prematurely when 2020-06-30 13:20:17 +01:00
mqtt WIP: MQTT fixes (#2986) 2020-06-09 22:26:52 +02:00
net Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
pcm Implement panic call handling for all modules (#3163) 2020-06-16 08:19:55 +01:00
platform Implement panic call handling for all modules (#3163) 2020-06-16 08:19:55 +01:00
pm Implement panic call handling for all modules (#3163) 2020-06-16 08:19:55 +01:00
sjson Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
smart Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
spiffs Implement panic call handling for all modules (#3163) 2020-06-16 08:19:55 +01:00
tsl2561 Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
u8g2lib Implement panic call handling for all modules (#3163) 2020-06-16 08:19:55 +01:00
ucglib Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
user Squashed updates do get Lua51 and Lua53 working (#3075) 2020-06-09 22:26:52 +02:00
uzlib Dev make cleanup (#2842) 2019-07-23 18:47:18 +03:00
websocket Networking rampage and accumulated fixes (#3060) 2020-06-09 22:26:52 +02:00
.gitignore seperate user_config.h to speed-up compile when modules disabled/enabled 2015-03-06 11:59:04 +08:00
Makefile Remove sqlite3 module 2020-06-10 02:14:29 +01:00