Skip to content

Commit a6ec9ab

Browse files
authored
Update DHT.h To Support Arduino Nano Matter
Hi Adafruit team, this commit is to add support to the Arduino Nano Matter board that doesn't has declared the **microsecondsToClockCycles()** function
1 parent 2295fe4 commit a6ec9ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DHT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static const uint8_t DHT21{21}; /**< DHT TYPE 21 */
4747
static const uint8_t DHT22{22}; /**< DHT TYPE 22 */
4848
static const uint8_t AM2301{21}; /**< AM2301 */
4949

50-
#if defined(TARGET_NAME) && (TARGET_NAME == ARDUINO_NANO33BLE)
50+
#if defined(TARGET_NAME) && (TARGET_NAME == ARDUINO_NANO33BLE) || defined(ARDUINO_MATTER)
5151
#ifndef microsecondsToClockCycles
5252
/*!
5353
* As of 7 Sep 2020 the Arduino Nano 33 BLE boards do not have

0 commit comments

Comments
 (0)