File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ boolean DHT::read(void) {
119
119
pinMode (_pin, OUTPUT);
120
120
digitalWrite (_pin, LOW);
121
121
delay (20 );
122
- cli ();
122
+ noInterrupts ();
123
123
digitalWrite (_pin, HIGH);
124
124
delayMicroseconds (40 );
125
125
pinMode (_pin, INPUT);
@@ -149,7 +149,7 @@ boolean DHT::read(void) {
149
149
150
150
}
151
151
152
- sei ();
152
+ interrupts ();
153
153
154
154
/*
155
155
Serial.println(j, DEC);
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ class DHT {
24
24
private:
25
25
uint8_t data[6 ];
26
26
uint8_t _pin, _type, _count;
27
- boolean read (void );
28
27
unsigned long _lastreadtime;
29
28
boolean firstreading;
30
29
@@ -35,6 +34,7 @@ class DHT {
35
34
float convertCtoF (float );
36
35
float computeHeatIndex (float tempFahrenheit, float percentHumidity);
37
36
float readHumidity (void );
37
+ boolean read (void );
38
38
39
39
};
40
40
#endif
You can’t perform that action at this time.
0 commit comments