finding a bug

This commit is contained in:
Daniel Ledda
2020-10-31 18:33:20 +01:00
parent 7f2d3cc00f
commit eea652f3c5

View File

@@ -66,6 +66,8 @@ func readDataFromDHTTest(pin *gpio.Pin) ([5]byte, error) {
edgeChangeTimestamps = append(edgeChangeTimestamps, time.Now().UnixNano()) edgeChangeTimestamps = append(edgeChangeTimestamps, time.Now().UnixNano())
}) })
time.Sleep(time.Second)
fmt.Println(edgeChangeTimestamps) fmt.Println(edgeChangeTimestamps)
return [5]byte{0, 0, 0, 0, 0}, nil return [5]byte{0, 0, 0, 0, 0}, nil