adafruit / Adafruit_ADS1X15

Driver for TI's ADS1015: 12-bit Differential or Single-Ended ADC with PGA and Comparator
Other
289 stars 301 forks source link

Fix hardcoded reg addr in readRegister #44

Closed zaporozhets closed 4 years ago

zaporozhets commented 4 years ago

Yo. Added minor fix in readRegister function. This fix doesn't break any platform, just makes code more clear and predictable. Tested with Mega256 board.

Cheers, Taras.