From e6c1725b6a3419d5a28542d79bde271d0d5ef6f6 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sat, 30 Mar 2019 12:55:05 +0200 Subject: Integrate mode change into `into...` methods --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index e247183..5e6b7fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] -... +### Changed +- [breaking-change] Mode change has been integrated into `into_continuous` and + `into_one_shot` methods. This removes the need for a `start` method in continuous + mode and the `Error::NotStarted`. Everything is now encoded into the modes. + When changing into continuous mode the measurements are started and to stop one + can simply change into one-shot mode. (This is how the hardware does it anyway). + The one-shot mode is not affected. + When changing the mode an I2C communication error can occur but the unchanged device + can now be retrieved. ## 0.1.0 - 2018-11-21 -- cgit v1.2.3-54-g00ecf