Skip to content

Commit 6587032

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)