From 1fa27e89ace76f057d8952c2a7fd6f28f608d3df Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Wed, 29 Dec 2021 15:26:25 +0100 Subject: [PATCH] Fixed output of structs inside arrays without indexes This is the case for curves inside mixes, which would previously prevent outputting all attributes following the `curve` attribute: `delayUp`, `delayDown`, `speedUp`, `speedDown` and `name`. --- radio/src/storage/yaml/yaml_tree_walker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/storage/yaml/yaml_tree_walker.cpp b/radio/src/storage/yaml/yaml_tree_walker.cpp index d91e8b489..b2e900327 100644 --- a/radio/src/storage/yaml/yaml_tree_walker.cpp +++ b/radio/src/storage/yaml/yaml_tree_walker.cpp @@ -496,7 +496,7 @@ bool YamlTreeWalker::generate(yaml_writer_func wf, void* opaque) } else { - if (isParentArrayElmt() && !toParent()) + if (isParentArrayElmt() && (getParent() == node) && !toParent()) return false; // walk to next non-empty element