eldruin / ads1x1x-rs

Platform-agnostic Rust driver for the ADS1x1x ultra-small, low-power analog-to-digital converters (ADC). Compatible with ADS1013, ADS1014, ADS1015, ADS1113, ADS1114 and ADS1115
https://blog.eldruin.com/ads1x1x-analog-to-digital-converter-driver-in-rust/
Apache License 2.0
31 stars 9 forks source link

Remove `reset_internal_driver_state`. #22

Closed reitermarkus closed 5 months ago

reitermarkus commented 5 months ago

A device can already be reset by destroying and recreating it. Also, calling reset_internal_driver_state in Continuous mode is wrong, since the device will be in OneShot mode after a reset.

coveralls commented 5 months ago

Coverage Status

coverage: 81.974% (+0.7%) from 81.277% when pulling eb540ffbeaa36fb38e0ece13b23fe05caa8c27de on reitermarkus:remove-reset into 9cc795648110f4d1db47534b1818e19bd75bd3d0 on eldruin:master.

KidiIT commented 5 months ago

All checked🌚❤️ and successfully approved✅