1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

raw: fix parsing of options

This commit is contained in:
Steffen Vogel 2022-02-23 15:57:22 +01:00
parent d9ac24bf12
commit ca533ac8e0
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ nodes = {
format = {
type = "raw"
bits = "32"
bits = 32
endianess = "big"
}

View file

@ -416,7 +416,7 @@ void RawFormat::parse(json_t *json)
int fake_tmp = 0;
const char *end = nullptr;
ret = json_unpack_ex(json, &err, 0, "{ }",
ret = json_unpack_ex(json, &err, 0, "{ s?: s, s?: b, s?: i }",
"endianess", &end,
"fake", &fake_tmp,
"bits", &bits