1
0
Fork 0
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:
Niklas Eiling 2020-09-15 15:09:56 +02:00 committed by Manuel Pitz
parent ca36c12fc7
commit 58286b7d5a

View file

@ -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");