diff --git a/dht22.h b/dht22.h index b12e9fb..0789d2b 100644 --- a/dht22.h +++ b/dht22.h @@ -3,6 +3,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { int pin; float humidity; @@ -12,4 +16,10 @@ typedef struct { void getData(sensor *s); //static int read_dht22_dat(int pin, sensor *s); //static uint8_t sizecvt(const int read); + +#ifdef __cplusplus +} +#endif + + #endif