summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Reiter <me@reitermark.us>2024-01-30 12:15:18 +0100
committerGitHub <noreply@github.com>2024-01-30 12:15:18 +0100
commit698c817a34c4b3835cc19453ec9310c12e1a5784 (patch)
tree3816538b287ef651134abf027ade025addea1901
parentae2b28f057b464e72736308624d1154e210f3b89 (diff)
downloadads1x1x-async-698c817a34c4b3835cc19453ec9310c12e1a5784.tar.gz
ads1x1x-async-698c817a34c4b3835cc19453ec9310c12e1a5784.tar.xz
ads1x1x-async-698c817a34c4b3835cc19453ec9310c12e1a5784.zip
Remove `reset_internal_driver_state`. (#22)
* Remove `reset_internal_driver_state`. * Update changelog.
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/devices/common.rs15
2 files changed, 1 insertions, 15 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 362a5f1..6a0587c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Removed
- Removed `I2cInterface`.
+- Removed `reset_internal_driver_state` method.
## [0.2.2] - 2021-07-29
diff --git a/src/devices/common.rs b/src/devices/common.rs
index 5fed33f..53cb050 100644
--- a/src/devices/common.rs
+++ b/src/devices/common.rs
@@ -37,19 +37,4 @@ where
};
Ok(!config.is_high(BitFlags::OS))
}
-
- /// Reset the internal state of this driver to the default values.
- ///
- /// *Note:* This does not alter the state or configuration of the device.
- ///
- /// This resets the cached configuration register value in this driver to
- /// the power-up (reset) configuration of the device.
- ///
- /// This needs to be called after performing a reset on the device, for
- /// example through an I2C general-call Reset command, which was not done
- /// through this driver to ensure that the configurations in the device
- /// and in the driver match.
- pub fn reset_internal_driver_state(&mut self) {
- self.config = Config::default();
- }
}