Skip to content

Commit 0a94d66

Browse files
cosmikwolfburrbull
andcommitted
cleanup and added example in res
added readme update added expected, and an register to show it doesnt delete it cleanup print statements updated so expanding cluster updates address_offset fixed the delete_clusters function to return an error if the cluster does not exist updating cluster expansion for nested and multidim clusters added test nested and multi dim test clusters to res/expand_cluster updated res/expand_cluster test cases Update src/patch/peripheral.rs Co-authored-by: Zgarbul Andrey <[email protected]>
1 parent 8ab0f19 commit 0a94d66

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/patch/peripheral.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,11 @@ impl PeripheralExt for Peripheral {
10191019
}
10201020
}
10211021

1022+
for cspec in pmod.str_vec_iter("_expand_cluster").map_err(|_| anyhow!("`_expand_cluster` requires string value or array of strings"))? {
1023+
let cspec = cspec.str()?;
1024+
self.expand_cluster(cspec, &ppath)
1025+
.with_context(|| format!("During expand of `{cspec}` cluster"))?;
1026+
}
10221027
// Handle any copied peripherals
10231028
for (rname, rcopy) in pmod.hash_iter("_copy") {
10241029
let rname = rname.str()?;

0 commit comments

Comments
 (0)