fixed input length

This commit is contained in:
Daniel Ledda
2020-10-31 15:26:50 +01:00
parent fa225a4a2d
commit 2ca98c934c

View File

@@ -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()