Fork

Dependents:   DHT11_and_DHT22_MbedOS5_Example

Files at this revision

API Documentation at this revision

Comitter:
Daniel_Lee
Date:
Fri Nov 08 04:21:13 2019 +0000
Parent:
3:6937e130feca
Child:
5:cd2c41384ab8
Commit message:
Fixed compile error;

Changed in this revision

DHT.h Show annotated file Show diff for this revision Revisions of this file
--- a/DHT.h	Sat May 28 11:11:34 2016 +0000
+++ b/DHT.h	Fri Nov 08 04:21:13 2019 +0000
@@ -34,7 +34,6 @@
 #define MBED_DHT_H
 
 #include "mbed.h"
-
 typedef enum eType eType;
 enum eType {
     DHT11     = 11,
@@ -46,9 +45,19 @@
     RHT02     = 22,
     RHT03     = 22
 };
-
-typedef enum eError eError;
-enum eError {
+/*
+typedef enum{
+    DHT11     = 11,
+    SEN11301P = 11,
+    RHT01     = 11,
+    DHT22     = 22,
+    AM2302    = 22,
+    SEN51035P = 22,
+    RHT02     = 22,
+    RHT03     = 22
+}eType;
+*/
+typedef enum eError {
     ERROR_NONE = 0,
     BUS_BUSY,
     ERROR_NOT_PRESENT,
@@ -59,8 +68,7 @@
     ERROR_NO_PATIENCE
 };
 
-typedef enum eScale eScale;
-enum eScale {
+typedef enum eScale {
     CELCIUS = 0,
     FARENHEIT,
     KELVIN