Skip to content

Commit 45a20da

Browse files
Shrink DHT::data to 5 bytes
There's only 5 bytes of data being transferred (2x2 bytes of data, 1 byte checksum), so no need to keep a useless byte.
1 parent 5973929 commit 45a20da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DHT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class DHT {
4747
boolean read(bool force=false);
4848

4949
private:
50-
uint8_t data[6];
50+
uint8_t data[5];
5151
uint8_t _pin, _type, _bit, _port;
5252
uint32_t _lastreadtime, _maxcycles;
5353
bool _lastresult;

0 commit comments

Comments
 (0)