From 6243c087f57465792fca4a2682e3bc3060ff7d31 Mon Sep 17 00:00:00 2001 From: Structix Date: Wed, 23 Aug 2017 09:52:09 +0000 Subject: [PATCH] Update dht22.h --- dht22.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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