flyte / mqtt-io

Expose GPIO modules (Raspberry Pi, Beaglebone, PCF8754, PiFace2 etc.) and digital sensors (LM75 etc.) to an MQTT server for remote control and monitoring.
MIT License
461 stars 157 forks source link

Fix use of "2 / 3" gain setting for ADS1x15 #313

Closed slevin22 closed 1 year ago

slevin22 commented 1 year ago

Currently, if "2 / 3" is entered into the config file for gain, it will error out as it requires an integer. In order to use this gain setting, we have to pass a float of 0.6666666666666666 to the adafruit library.