Skip to content

Commit caadcf9

Browse files
committed
Fix cluster info size calculation.
1 parent 773caae commit caadcf9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
77

88
## [Unreleased]
99

10+
- Fix the cluster info size calculation.
11+
1012
## [v0.37.1] - 2025-10-17
1113

1214
- Change `feature(doc_auto_cfg)` to `feature(doc_cfg)` to allow nightly docs to build.

src/generate/peripheral.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ fn cluster_info_size_in_bits(info: &ClusterInfo, path: &BlockPath, config: &Conf
913913
.map(|rbf| rbf.size)
914914
.sum();
915915

916-
(reg.address_offset * BITS_PER_BYTE) + reg_size
916+
reg_size
917917
}
918918
RegisterCluster::Cluster(clust) => {
919919
(clust.address_offset * BITS_PER_BYTE) + cluster_size_in_bits(clust, path, config)?

0 commit comments

Comments
 (0)