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:
Matthijs Kooijman 2015-07-24 18:08:47 +02:00
parent 5973929e63
commit 45a20da301

2
DHT.h
View File

@ -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;