mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2023-10-23 22:20:38 +03:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
be6915c60d | |||
b2be3b193b | |||
5273ef06a8 | |||
2470b8a3a1 |
6
.github/workflows/githubci.yml
vendored
6
.github/workflows/githubci.yml
vendored
@ -7,11 +7,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: adafruit/ci-arduino
|
repository: adafruit/ci-arduino
|
||||||
path: ci
|
path: ci
|
||||||
|
4
DHT.cpp
4
DHT.cpp
@ -360,7 +360,9 @@ bool DHT::read(bool force) {
|
|||||||
// in the very latest IDE versions):
|
// in the very latest IDE versions):
|
||||||
// https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/wiring_pulse.c
|
// https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/wiring_pulse.c
|
||||||
uint32_t DHT::expectPulse(bool level) {
|
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;
|
uint32_t count = 0;
|
||||||
#else
|
#else
|
||||||
uint16_t count = 0; // To work fast enough on slower AVR boards
|
uint16_t count = 0; // To work fast enough on slower AVR boards
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name=DHT sensor library
|
name=DHT sensor library
|
||||||
version=1.4.3
|
version=1.4.4
|
||||||
author=Adafruit
|
author=Adafruit
|
||||||
maintainer=Adafruit <info@adafruit.com>
|
maintainer=Adafruit <info@adafruit.com>
|
||||||
sentence=Arduino library for DHT11, DHT22, etc Temp & Humidity Sensors
|
sentence=Arduino library for DHT11, DHT22, etc Temp & Humidity Sensors
|
||||||
|
Reference in New Issue
Block a user