Skip to content

Commit a0f5637

Browse files
committed
fix derive enum by fullpath
1 parent 81ba23c commit a0f5637

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

svd-parser/src/expand.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,9 @@ fn derive_enumerated_values(
453453
FieldPath::new(&fpath.register, &fdname)
454454
} else {
455455
let (rdpath, rdname) = RegisterPath::split_vec(v);
456-
let rdpath = if let Some(rdpath) = rdpath {
456+
let rdpath = if let Some(mut rdpath) = rdpath {
457457
// FULL.PATH.EVNAME:
458+
rdpath.path.push(rdname.into());
458459
rdpath
459460
} else {
460461
// REG.FIELD.EVNAME

0 commit comments

Comments
 (0)