Merge pull request #16874 from barbudor/overridable_dht_max_sensor

allow DHT_MAX_SENSORS to be overridden
This commit is contained in:
Theo Arends 2022-10-21 21:52:28 +02:00 committed by GitHub
commit 203b040ca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -35,7 +35,9 @@
#define XSNS_06 6
#ifndef DHT_MAX_SENSORS
#define DHT_MAX_SENSORS 4
#endif
#define DHT_MAX_RETRY 8
uint8_t dht_data[5];

View File

@ -26,7 +26,9 @@
#define XSNS_06 6
#ifndef DHT_MAX_SENSORS
#define DHT_MAX_SENSORS 4
#endif
#define DHT_MAX_RETRY 8
uint32_t dht_maxcycles;

View File

@ -31,7 +31,9 @@
#define XSNS_06 6
#ifndef DHT_MAX_SENSORS
#define DHT_MAX_SENSORS 4
#endif
#define DHT_MAX_RETRY 8
#include <DHT.h>