mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2023-10-23 22:20:38 +03:00
Merge pull request #188 from phd/phd-const-sensors-types
Use const instead of defines for sensors types
This commit is contained in:
commit
cf2346e7c1
10
DHT.h
10
DHT.h
@ -41,11 +41,11 @@
|
||||
#endif
|
||||
|
||||
/* Define types of sensors. */
|
||||
#define DHT11 11 /**< DHT TYPE 11 */
|
||||
#define DHT12 12 /**< DHY TYPE 12 */
|
||||
#define DHT22 22 /**< DHT TYPE 22 */
|
||||
#define DHT21 21 /**< DHT TYPE 21 */
|
||||
#define AM2301 21 /**< AM2301 */
|
||||
static const uint8_t DHT11{11}; /**< DHT TYPE 11 */
|
||||
static const uint8_t DHT12{12}; /**< DHY TYPE 12 */
|
||||
static const uint8_t DHT21{21}; /**< DHT TYPE 22 */
|
||||
static const uint8_t DHT22{22}; /**< DHT TYPE 21 */
|
||||
static const uint8_t AM2301{21}; /**< AM2301 */
|
||||
|
||||
#if defined(TARGET_NAME) && (TARGET_NAME == ARDUINO_NANO33BLE)
|
||||
#ifndef microsecondsToClockCycles
|
||||
|
Loading…
Reference in New Issue
Block a user