We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a596fee commit 2ec5b71Copy full SHA for 2ec5b71
SHT31.cpp
@@ -131,6 +131,15 @@ uint16_t SHT31::readStatus()
131
return (uint16_t) (status[0] << 8) + status[1];
132
}
133
134
+bool SHT31::clearStatus()
135
+{
136
+ if (writeCmd(SHT31_CLEAR_STATUS) == false)
137
+ {
138
+ return false;
139
+ }
140
+ _lastRequest = millis();
141
+ return true;
142
+}
143
144
bool SHT31::reset(bool hard)
145
{
SHT31.h
@@ -57,6 +57,7 @@ class SHT31
57
58
// details see datasheet; summary in SHT31.cpp file
59
uint16_t readStatus();
60
+ bool clearStatus();
61
62
// lastRead is in milliSeconds since start
63
uint32_t lastRead() { return _lastRead; };
0 commit comments