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

Disable usage of sched_setscheduler() on Apple devices #19

Closed d2r2 closed 5 years ago

d2r2 commented 5 years ago

This modification should resolve library compilation issue on MacOS (Darwin doesn't have sched_setscheduler). In such cases parameter boostPerfFlag is useless in function dial_DHTxx_and_read().