d2r2 / go-dht

Golang library to interact with DHT11/DHT22/DHT12 temperature and humidity sensors from Raspberry PI.
MIT License
133 stars 52 forks source link

Increase buffer for GPIO pin number (#29) #30

Open thkukuk opened 1 year ago

thkukuk commented 1 year ago

On my Raspberry Pi 3 the GPIO pin numbers are in the 20xx range, so a 2 character buffer is far too small. Increase it to 5 characters.