|
|
@ -52,7 +52,7 @@ int rf_zmq_tx_open(rf_zmq_tx_t* q, rf_zmq_opts_t opts, void* zmq_ctx, char* sock
|
|
|
|
}
|
|
|
|
}
|
|
|
|
q->socket_type = opts.socket_type;
|
|
|
|
q->socket_type = opts.socket_type;
|
|
|
|
q->sample_format = opts.sample_format;
|
|
|
|
q->sample_format = opts.sample_format;
|
|
|
|
q->frequency_hz_mhz = opts.frequency_mhz;
|
|
|
|
q->frequency_mhz = opts.frequency_mhz;
|
|
|
|
|
|
|
|
|
|
|
|
rf_zmq_info(q->id, "Binding transmitter: %s\n", sock_args);
|
|
|
|
rf_zmq_info(q->id, "Binding transmitter: %s\n", sock_args);
|
|
|
|
|
|
|
|
|
|
|
@ -216,7 +216,7 @@ bool rf_zmq_tx_match_freq(rf_zmq_tx_t* q, uint32_t freq_hz)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bool ret = false;
|
|
|
|
bool ret = false;
|
|
|
|
if (q) {
|
|
|
|
if (q) {
|
|
|
|
ret = (q->frequency_hz_mhz == 0 || q->frequency_hz_mhz == freq_hz);
|
|
|
|
ret = (q->frequency_mhz == 0 || q->frequency_mhz == freq_hz);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ret;
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|