From 84b3a9dcc1fa66c8039227e9982bb016e19befb4 Mon Sep 17 00:00:00 2001 From: Adin Ackerman Date: Fri, 18 Aug 2023 18:49:08 -0700 Subject: [PATCH 1/3] fix temp example --- examples/adc_values.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/adc_values.rs b/examples/adc_values.rs index 7c100fef..bd7cd8d4 100644 --- a/examples/adc_values.rs +++ b/examples/adc_values.rs @@ -79,7 +79,7 @@ fn SysTick() { if let Some(ref mut shared) = SHARED.borrow(cs).borrow_mut().deref_mut() { // Read temperature data from internal sensor using ADC let t = hal::adc::VTemp::read(&mut shared.adc, None); - writeln!(shared.tx, "Temperature {}.{}C\r", t / 100, t % 100).ok(); + writeln!(shared.tx, "Temperature {}.{}C\r", t / 10, t % 10).ok(); // Read volatage reference data from internal sensor using ADC let t = hal::adc::VRef::read_vdda(&mut shared.adc); From f4eccb10fd043a3f68be40caa26d8eec59f275b9 Mon Sep 17 00:00:00 2001 From: Adin Ackerman Date: Fri, 18 Aug 2023 18:51:21 -0700 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 525825ef..3fb2b542 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Fixed +- `adc_values` example conversion error + ### Added - PWM complementary output capability for TIM1 with new example to demonstrate From 97696ff7bc45da0808e75a7e2f4bd4e3e81ade52 Mon Sep 17 00:00:00 2001 From: Adin Ackerman Date: Sat, 19 Aug 2023 21:05:02 -0700 Subject: [PATCH 3/3] fix repeat sections in changelog --- CHANGELOG.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fb2b542..d6883847 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,13 +7,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] -### Fixed -- `adc_values` example conversion error - -### Added - -- PWM complementary output capability for TIM1 with new example to demonstrate - ### Changed - Updated the `cast` dependency from 0.2 to 0.3 @@ -22,10 +15,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Provide getters to serial status flags idle/txe/rxne/tc. - Provide ability to reset timer UIF interrupt flag +- PWM complementary output capability for TIM1 with new example to demonstrate ### Fixed - Wrong mode when using PWM channel 2 of a two-channel timer +- `adc_values` example conversion error ## [v0.18.0] - 2021-11-14