finding a bug
This commit is contained in:
2
main.go
2
main.go
@@ -64,7 +64,7 @@ func readDataFromDHT(pin *gpio.Pin) ([5]byte, error) {
|
||||
time.Sleep(1100 * time.Microsecond)
|
||||
pin.PullUp()
|
||||
pin.Input()
|
||||
time.Sleep(30 * time.Microsecond)
|
||||
time.Sleep(20 * time.Microsecond)
|
||||
// Wait for low high signal
|
||||
if cyclesForReading(pin, gpio.Low) == Timeout {
|
||||
return [5]byte{}, errors.New(fmt.Sprintf(TimeoutErrInitial, "low"))
|
||||
|
||||
Reference in New Issue
Block a user