From e0495d1da809905bcf66984fba030f2939f3e178 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 17 Feb 2021 21:06:28 +0100 Subject: [PATCH] zmq: fix parsing of log_trx_timeout add temp var for this param. the bug cause log_trx_timeout to have the value of the previously parsed fail_on_disconnect --- lib/src/phy/rf/rf_zmq_imp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/phy/rf/rf_zmq_imp.c b/lib/src/phy/rf/rf_zmq_imp.c index 7878e549a..d4514b58c 100644 --- a/lib/src/phy/rf/rf_zmq_imp.c +++ b/lib/src/phy/rf/rf_zmq_imp.c @@ -322,8 +322,9 @@ int rf_zmq_open_multi(char* args, void** h, uint32_t nof_channels) parse_uint32(args, "trx_timeout_ms", i, &rx_opts.trx_timeout_ms); // log_trx_timeout + char tmp2[RF_PARAM_LEN] = {}; parse_string(args, "log_trx_timeout", i, tmp); - if (strncmp(tmp, "true", RF_PARAM_LEN) == 0 || strncmp(tmp, "yes", RF_PARAM_LEN) == 0) { + if (strncmp(tmp2, "true", RF_PARAM_LEN) == 0 || strncmp(tmp2, "yes", RF_PARAM_LEN) == 0) { rx_opts.log_trx_timeout = true; }