HDC1080 sensor library
Revision 3:d7627c8dcfe3, committed 2019-11-10
- Comitter:
- MACRUM
- Date:
- Sun Nov 10 03:37:32 2019 +0000
- Parent:
- 2:b913d2690215
- Child:
- 4:250aceaa7a01
- Commit message:
- Fix API version issue
Changed in this revision
HDC1080.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HDC1080.cpp Fri Nov 08 05:08:12 2019 +0000 +++ b/HDC1080.cpp Sun Nov 10 03:37:32 2019 +0000 @@ -15,6 +15,9 @@ const float HDC_CHIP_ERROR = -255; const unsigned long HDC_CHIP_SER_ERROR = 0; +#if MBED_MINOR_VERSION < 14 +#define thread_sleep_for(X) wait_ms(X) +#endif HDC1080::HDC1080(PinName sda, PinName slc) : I2C(sda, slc) {