library for SHT25 humidity and temperature sensor https://www.sensirion.com/products/humidity-sensor/

Dependents:   lib_SHT25_example

Files at this revision

API Documentation at this revision

Comitter:
YSI
Date:
Wed Oct 06 14:05:16 2021 +0000
Parent:
9:382955a266cb
Commit message:
fix operator priority for macro SHT_WAIT

Changed in this revision

lib_SHT25.h Show annotated file Show diff for this revision Revisions of this file
--- a/lib_SHT25.h	Wed Oct 06 13:41:00 2021 +0000
+++ b/lib_SHT25.h	Wed Oct 06 14:05:16 2021 +0000
@@ -48,7 +48,7 @@
 #define SHT_WAIT(ms)        (thread_sleep_for(ms))
 #else
 #define SHT_SELF_HEATING    0x01    //Keep self heating
-#define SHT_WAIT(ms)        (wait_us(1000*ms))
+#define SHT_WAIT(ms)        (wait_us(1000*(ms)))
 #endif