Skip to content

Commit cfaa202

Browse files
authored
Merge pull request #174 from per1234/fix-nano-33-ble-conditional
Make preprocessor conditional false when identifier undefined
2 parents b64fe15 + 8611588 commit cfaa202

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 @@
4747
#define DHT21 21 /**< DHT TYPE 21 */
4848
#define AM2301 21 /**< AM2301 */
4949

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

0 commit comments

Comments
 (0)