markruys / arduino-DHT

Efficient DHT library for Arduino
Other
162 stars 119 forks source link

Explicit datatype, required fix for DHT22 on STM32 combinason (at least) #7

Closed ozolive closed 7 years ago

ozolive commented 7 years ago

Hi !

Thanks for your nice and reliable lib ! I use it on AVR and ported my project to STM32F103C8T6 (aka bluepill).

I had to use explicit datatype, as "word" is 16-bit unsigned i declare it as uint16_t in this change, and this fixed humidity readings on my stm32duino sketch.

As a double-check i compared the compiled binaries before and after this change on AVR, and it doesn't change one single bit of the produced code.

So please include it, as it would allow me to remove my own "fork"..

Regards, Olivier