From 45a20da301c97a5d7256df5a76a77fb245173505 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 24 Jul 2015 18:08:47 +0200 Subject: [PATCH] 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. --- DHT.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DHT.h b/DHT.h index bbce4f5..5d92f06 100644 --- a/DHT.h +++ b/DHT.h @@ -47,7 +47,7 @@ class DHT { boolean read(bool force=false); private: - uint8_t data[6]; + uint8_t data[5]; uint8_t _pin, _type, _bit, _port; uint32_t _lastreadtime, _maxcycles; bool _lastresult;