finding a bug

This commit is contained in:
Daniel Ledda
2020-10-31 18:36:31 +01:00
parent 52886018b2
commit 86eca4d41e

View File

@@ -40,7 +40,7 @@ func main() {
defer gpio.Close()
pin := gpio.NewPin(gpio.GPIO4)
dhtData, err := readDataFromDHTTest(pin)
dhtData, err := readDataFromDHT(pin)
if err != nil {
fmt.Println(fmt.Sprintf("Bad read! Reason: %s!", err.Error()))
} else {