From 58286b7d5a242f2451c47302d3d96849d3fd3e45 Mon Sep 17 00:00:00 2001 From: Niklas Eiling Date: Tue, 15 Sep 2020 15:09:56 +0200 Subject: [PATCH] fix reading of non-existent config parameter --- lib/hooks/pps_ts.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/hooks/pps_ts.cpp b/lib/hooks/pps_ts.cpp index 0fb5e3046..6a50a931d 100644 --- a/lib/hooks/pps_ts.cpp +++ b/lib/hooks/pps_ts.cpp @@ -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");