Prevent dht.h being imported multiple times

Added a basic #ifndef DHT_H to the dht.h file so that if you have a
larger program and want to access the sensor from a different file, you
don't import it twice.
This commit is contained in:
Colin Miller 2012-07-26 21:39:47 -07:00
parent 53e6481231
commit fca71323bd

3
DHT.h
View File

@ -1,3 +1,5 @@
#ifndef DHT_H
#define DHT_H
#if ARDUINO >= 100
#include "Arduino.h"
#else
@ -34,3 +36,4 @@ class DHT {
float readHumidity(void);
};
#endif