Daniel Lee
/
DHT11_and_DHT22_MbedOS5_Example
Code sync and fixed compile error for Mbed OS5
Diff: main.cpp
- Revision:
- 3:264755aa4608
- Parent:
- 2:81340dde3444
--- 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);