Skip to content

Commit 43be074

Browse files
bors[bot]burrbull
andauthored
Merge #549
549: fix bug in #537 r=Emilgardis a=burrbull resolves #547 Co-authored-by: Andrey Zgarbul <[email protected]>
2 parents 786bd74 + 46ac1c4 commit 43be074

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Fixed
1111

12+
- Bug with `use_mask`
1213
- Correct derive for register (cluster) array (needs `svd-rs` 0.11.2)
1314

1415
### Added

src/generate/register.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ pub fn fields(
310310
let use_mask = if let Some(size) = parent.properties.size {
311311
size != width
312312
} else {
313-
false
313+
true
314314
};
315315

316316
let lookup_results = lookup(

0 commit comments

Comments
 (0)