Skip to content

Commit cfce810

Browse files
authored
Merge pull request #108 from stm32-rs/field_access_fix
empty field access
2 parents 56c98ff + ad64e05 commit cfce810

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/patch/register.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ impl RegisterExt for Register {
239239
}
240240
// For all other tags, just set the value
241241
ftag.modify_from(make_field(fmod)?, VAL_LVL)?;
242+
if let Some("") = fmod.get_str("access")? {
243+
ftag.access = None;
244+
}
242245
}
243246
Ok(())
244247
}

0 commit comments

Comments
 (0)