finding a bug

This commit is contained in:
Daniel Ledda
2020-10-31 18:32:45 +01:00
parent 3b0213b965
commit 7f2d3cc00f

View File

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