mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2023-10-23 22:20:38 +03:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
b2be3b193b | |||
5273ef06a8 | |||
2470b8a3a1 |
4
DHT.cpp
4
DHT.cpp
@ -360,7 +360,9 @@ bool DHT::read(bool force) {
|
||||
// in the very latest IDE versions):
|
||||
// https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/wiring_pulse.c
|
||||
uint32_t DHT::expectPulse(bool level) {
|
||||
#if (F_CPU > 16000000L)
|
||||
// F_CPU is not be known at compile time on platforms such as STM32F103.
|
||||
// The preprocessor seems to evaluate it to zero in that case.
|
||||
#if (F_CPU > 16000000L) || (F_CPU == 0L)
|
||||
uint32_t count = 0;
|
||||
#else
|
||||
uint16_t count = 0; // To work fast enough on slower AVR boards
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=DHT sensor library
|
||||
version=1.4.3
|
||||
version=1.4.4
|
||||
author=Adafruit
|
||||
maintainer=Adafruit <info@adafruit.com>
|
||||
sentence=Arduino library for DHT11, DHT22, etc Temp & Humidity Sensors
|
||||
|
Reference in New Issue
Block a user