File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,11 @@ This changelog tracks the Rust `svdtools` project. See
99* Add ` --enum_derive ` flag
1010* Strip ` alternateRegister ` too
1111* Add ` modifiedWriteValues ` and ` readAction ` field patch (#156 )
12+ * Fix #144
1213
1314## [ v0.3.6] 2023-11-01
1415
15- * Fix #184
16+ * Fix #182
1617
1718## [ v0.3.5] 2023-11-30
1819
Original file line number Diff line number Diff line change @@ -633,7 +633,7 @@ impl RegisterBlockExt for Peripheral {
633633 }
634634
635635 fn clear_fields ( & mut self , rspec : & str ) -> PatchResult {
636- for rtag in self . iter_registers ( rspec) {
636+ for rtag in self . all_registers_mut ( ) . matched ( rspec) {
637637 if rtag. derived_from . is_some ( ) {
638638 continue ;
639639 }
@@ -1099,7 +1099,7 @@ impl RegisterBlockExt for Cluster {
10991099 }
11001100
11011101 fn clear_fields ( & mut self , rspec : & str ) -> PatchResult {
1102- for rtag in self . iter_registers ( rspec) {
1102+ for rtag in self . all_registers_mut ( ) . matched ( rspec) {
11031103 if rtag. derived_from . is_some ( ) {
11041104 continue ;
11051105 }
You can’t perform that action at this time.
0 commit comments