Cause interrupts to be reenabled if a timeout occurs while waiting for the sensor.

This commit is contained in:
Zirientis committed 2015-07-01 17:58:17 -07:00
1 parent a1393fc0ff
commit a2208eb813
2 files changed
+58 -46

No files matched your search

+11
View File
@@ -57,4 +57,15 @@ class DHT {
};
class InterruptLock {
public:
InterruptLock() {
noInterrupts();
}
~InterruptLock() {
interrupts();
}
};
#endif