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

uldaq: bugfix when parsing signal definition

This commit is contained in:
Steffen Vogel 2018-09-25 13:01:58 +02:00
parent c9a9359c24
commit ec33de7fa5

View file

@ -228,7 +228,7 @@ int uldaq_parse(struct node *n, json_t *cfg)
const char *range_str = NULL, *input_mode_str = NULL;
int channel = -1, input_mode, range;
json_unpack_ex(json_signal, &err, 0, "{ s?: s, s?: s, s?: i }",
ret = json_unpack_ex(json_signal, &err, 0, "{ s?: s, s?: s, s?: i }",
"range", &range,
"input_mode", &input_mode,
"channel", &channel