mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2023-10-23 22:20:38 +03:00
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.
This commit is contained in:
parent
5973929e63
commit
45a20da301
2
DHT.h
2
DHT.h
@ -47,7 +47,7 @@ class DHT {
|
|||||||
boolean read(bool force=false);
|
boolean read(bool force=false);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint8_t data[6];
|
uint8_t data[5];
|
||||||
uint8_t _pin, _type, _bit, _port;
|
uint8_t _pin, _type, _bit, _port;
|
||||||
uint32_t _lastreadtime, _maxcycles;
|
uint32_t _lastreadtime, _maxcycles;
|
||||||
bool _lastresult;
|
bool _lastresult;
|
||||||
|
Loading…
Reference in New Issue
Block a user