Merge pull request #174 from per1234/fix-nano-33-ble-conditional

Make preprocessor conditional false when identifier undefined
This commit is contained in:
Limor "Ladyada" Fried 2020-12-01 21:21:34 -05:00 committed by GitHub
commit cfaa202f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
DHT.h
View File

@ -47,7 +47,7 @@
#define DHT21 21 /**< DHT TYPE 21 */
#define AM2301 21 /**< AM2301 */
#if (TARGET_NAME == ARDUINO_NANO33BLE)
#if defined(TARGET_NAME) && (TARGET_NAME == ARDUINO_NANO33BLE)
#ifndef microsecondsToClockCycles
/*!
* As of 7 Sep 2020 the Arduino Nano 33 BLE boards do not have