We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8a2ed9 commit 6540ba0Copy full SHA for 6540ba0
src/patch/peripheral.rs
@@ -447,9 +447,9 @@ impl RegisterBlockExt for Peripheral {
447
}
448
449
fn add_cluster(&mut self, cname: &str, cadd: &Hash) -> PatchResult {
450
- if self.all_registers().any(|c| c.name == cname) {
+ if self.clusters().any(|c| c.name == cname) {
451
return Err(anyhow!(
452
- "peripheral {} already has a register {cname}",
+ "peripheral {} already has a cluster {cname}",
453
self.name
454
));
455
0 commit comments