Code sync and fixed compile error for Mbed OS5

Dependencies:   DHT

Files at this revision

API Documentation at this revision

Comitter:
Daniel_Lee
Date:
Fri Nov 08 04:33:45 2019 +0000
Parent:
2:81340dde3444
Commit message:
Update;

Changed in this revision

DHT.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/DHT.lib	Fri Nov 08 04:22:31 2019 +0000
+++ b/DHT.lib	Fri Nov 08 04:33:45 2019 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/Daniel_Lee/code/DHT/#1b4e37ce64f8
+https://os.mbed.com/users/Daniel_Lee/code/DHT/#cd2c41384ab8
--- a/main.cpp	Fri Nov 08 04:22:31 2019 +0000
+++ b/main.cpp	Fri Nov 08 04:33:45 2019 +0000
@@ -10,7 +10,7 @@
     float h = 0.0f, c = 0.0f, f = 0.0f, k = 0.0f, dp = 0.0f, dpf = 0.0f;
 
     while(1) {
-        wait(2.0f);
+        wait(2);
         error = sensor.readData();
         if (0 == error) {
             c   = sensor.ReadTemperature(CELCIUS);