chore: Clean up some issues introduced in #1363

* Clean up some errors introduced in PR #1363

- Cleaning up bad YAML definitions
- Reverted renaming of 'jitterfilter' radio setting in storage/conversions/yaml/ files

* Add a custom attribute to allow for backward compatibility

* Prevent custom attributes without a 'write' function to output a tag

* companion - read but don't write old name

Co-authored-by: Raphael Coeffic <raphael.coeffic@frafos.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
Stephen Mose Aaskov
2022-03-16 18:07:26 +10:00
committed by GitHub
co-authored by Raphael Coeffic Peter Feerick
parent 4571c7b724
commit a1e7d70722
39 changed files with 142 additions and 132 deletions
@@ -1719,3 +1719,10 @@ bool w_channelsCount(const YamlNode* node, uint32_t val, yaml_writer_func wf, vo
{
return yaml_conv_220::w_channelsCount(node, val, wf, opaque);
}
static void r_jitterFilter(void* user, uint8_t* data, uint32_t bitoffs,
const char* val, uint8_t val_len)
{
uint32_t i = yaml_str2uint(val, val_len);
yaml_put_bits(data, i, bitoffs, 1);
}