From 2ca98c934c559574cc6286adbabff96b2fe74d57 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Sat, 31 Oct 2020 15:26:50 +0100 Subject: [PATCH] fixed input length --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 9254392..caf96a3 100644 --- a/main.go +++ b/main.go @@ -49,7 +49,7 @@ func main() { } func readDataFromDHT(pin *gpio.Pin) ([4]byte, error) { - receivedInput := [4]byte{0, 0, 0, 0} + receivedInput := [5]byte{0, 0, 0, 0, 0} // Setup pin.PullUp()