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
master
Andre Puschmann 4 years ago
parent cfd94441a5
commit e0495d1da8

@ -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;
}

Loading…
Cancel
Save