mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix reading of non-existent config parameter
This commit is contained in:
parent
ca36c12fc7
commit
58286b7d5a
1 changed files with 2 additions and 3 deletions
|
@ -166,10 +166,9 @@ public:
|
|||
|
||||
Hook::parse(cfg);
|
||||
|
||||
ret = json_unpack_ex(cfg, &err, 0, "{ s: i, s?: f, s?: f}",
|
||||
ret = json_unpack_ex(cfg, &err, 0, "{ s: i, s?: f}",
|
||||
"signal_index", &idx,
|
||||
"threshold", &thresh,
|
||||
"pll_gain", &pll_gain
|
||||
"threshold", &thresh
|
||||
);
|
||||
if (ret)
|
||||
throw ConfigError(cfg, err, "node-config-hook-pps_ts");
|
||||
|
|
Loading…
Add table
Reference in a new issue