diff options
Diffstat (limited to 'lib/ds1820.h')
-rw-r--r-- | lib/ds1820.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/ds1820.h b/lib/ds1820.h index 64a0089..4623de4 100644 --- a/lib/ds1820.h +++ b/lib/ds1820.h @@ -25,6 +25,10 @@ #ifndef __DS1820__ #define __DS1820__ +#ifdef __cplusplus +extern "C" { +#endif + #include <stdint.h> #define DS1820_FAMILY_ID 0x10 @@ -58,4 +62,8 @@ void ds1820_wait_conversion_time(uint8_t bits); int16_t ds1820_read_temperature(uint8_t d); float ds1820_raw_temp_to_celsius(int16_t t); -#endif
\ No newline at end of file +#ifdef __cplusplus +} +#endif + +#endif |