File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ This changelog tracks the Rust `svdtools` project. See
5
5
6
6
## [Unreleased]
7
7
8
+ ## [v0.4.2] 2025-01-25
9
+
10
+ * Fix optional `fspec` in `set_field_modified_write_values`
11
+
8
12
## [v0.4.1] 2025-01-21
9
13
10
14
* `html`: field `readAction` and `modifiedWriteValues` in `access`
@@ -205,7 +209,8 @@ Other changes:
205
209
206
210
* Initial release with feature-parity with the Python project.
207
211
208
- [Unreleased]: https://github.com/rust-embedded/svdtools/compare/v0.4.1...HEAD
212
+ [Unreleased]: https://github.com/rust-embedded/svdtools/compare/v0.4.2...HEAD
213
+ [v0.4.2]: https://github.com/rust-embedded/svdtools/compare/v0.4.1...v0.4.2
209
214
[v0.4.1]: https://github.com/rust-embedded/svdtools/compare/v0.4.0...v0.4.1
210
215
[v0.4.0]: https://github.com/rust-embedded/svdtools/compare/v0.3.21...v0.4.0
211
216
[v0.3.21]: https://github.com/rust-embedded/svdtools/compare/v0.3.20...v0.3.21
Original file line number Diff line number Diff line change 1
1
[package]
2
2
name = "svdtools"
3
- version = "0.4.1 "
3
+ version = "0.4.2 "
4
4
repository = "https://github.com/rust-embedded/svdtools/"
5
5
description = "Tool for modifying bugs in CMSIS SVD"
6
6
authors = ["Andrey Zgarbul <
[email protected] >", "MarcoIeni"]
Original file line number Diff line number Diff line change @@ -711,12 +711,14 @@ impl RegisterExt for Register {
711
711
}
712
712
713
713
fn set_field_read_action(&mut self, fspec: &str, action: ReadAction) {
714
+ let (fspec, _) = fspec.spec();
714
715
for ftag in self.iter_fields(fspec) {
715
716
ftag.read_action = Some(action);
716
717
}
717
718
}
718
719
719
720
fn set_field_modified_write_values(&mut self, fspec: &str, mwv: ModifiedWriteValues) {
721
+ let (fspec, _) = fspec.spec();
720
722
for ftag in self.iter_fields(fspec) {
721
723
ftag.modified_write_values = if mwv == ModifiedWriteValues::Modify {
722
724
None
You can’t perform that action at this time.
0 commit comments