mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Merge pull request #16874 from barbudor/overridable_dht_max_sensor
allow DHT_MAX_SENSORS to be overridden
This commit is contained in:
commit
203b040ca2
@ -35,7 +35,9 @@
|
|||||||
|
|
||||||
#define XSNS_06 6
|
#define XSNS_06 6
|
||||||
|
|
||||||
|
#ifndef DHT_MAX_SENSORS
|
||||||
#define DHT_MAX_SENSORS 4
|
#define DHT_MAX_SENSORS 4
|
||||||
|
#endif
|
||||||
#define DHT_MAX_RETRY 8
|
#define DHT_MAX_RETRY 8
|
||||||
|
|
||||||
uint8_t dht_data[5];
|
uint8_t dht_data[5];
|
||||||
|
@ -26,7 +26,9 @@
|
|||||||
|
|
||||||
#define XSNS_06 6
|
#define XSNS_06 6
|
||||||
|
|
||||||
|
#ifndef DHT_MAX_SENSORS
|
||||||
#define DHT_MAX_SENSORS 4
|
#define DHT_MAX_SENSORS 4
|
||||||
|
#endif
|
||||||
#define DHT_MAX_RETRY 8
|
#define DHT_MAX_RETRY 8
|
||||||
|
|
||||||
uint32_t dht_maxcycles;
|
uint32_t dht_maxcycles;
|
||||||
|
@ -31,7 +31,9 @@
|
|||||||
|
|
||||||
#define XSNS_06 6
|
#define XSNS_06 6
|
||||||
|
|
||||||
|
#ifndef DHT_MAX_SENSORS
|
||||||
#define DHT_MAX_SENSORS 4
|
#define DHT_MAX_SENSORS 4
|
||||||
|
#endif
|
||||||
#define DHT_MAX_RETRY 8
|
#define DHT_MAX_RETRY 8
|
||||||
|
|
||||||
#include <DHT.h>
|
#include <DHT.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user