HDC1080 sensor library

Revision:
2:b913d2690215
Parent:
1:a0e46d956969
Child:
3:d7627c8dcfe3
--- a/HDC1080.cpp	Fri Nov 08 04:56:00 2019 +0000
+++ b/HDC1080.cpp	Fri Nov 08 05:08:12 2019 +0000
@@ -61,6 +61,7 @@
 
 unsigned long HDC1080::readSerialNumber(void)
 {
+    thread_sleep_for(15);
     memset(_buffer,0,4);
     _buffer[0] = HDC_MANID_OFF;
     
@@ -69,6 +70,7 @@
         return (unsigned long) HDC_CHIP_SER_ERROR;
     }
 
+    thread_sleep_for(15);
     memset(_buffer,0,4);
     
     res = this->read(CHIP_ADDRESS, _buffer,4);
@@ -94,6 +96,7 @@
     }
     
     // read data from chip
+    thread_sleep_for(15);
     memset(_buffer,0,3);
     res = this->read(CHIP_ADDRESS, _buffer,2);
     if (res != 0) {