Skip to content

Commit

Permalink
Remove reset_internal_driver_state. (#22)
Browse files Browse the repository at this point in the history
* Remove `reset_internal_driver_state`.

* Update changelog.
  • Loading branch information
reitermarkus committed Jan 30, 2024
1 parent ae2b28f commit 698c817
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
15 changes: 0 additions & 15 deletions src/devices/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 698c817

Please sign in to comment.