Fix ZMQ typo

master
Xavier Arteaga 5 years ago committed by Xavier Arteaga
parent 5af89513eb
commit 66b98cf224

@ -55,7 +55,7 @@ typedef struct {
pthread_mutex_t mutex;
cf_t* zeros;
void* temp_buffer_convert;
uint32_t frequency_hz_mhz;
uint32_t frequency_mhz;
} rf_zmq_tx_t;
typedef struct {

@ -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->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);
@ -216,7 +216,7 @@ bool rf_zmq_tx_match_freq(rf_zmq_tx_t* q, uint32_t freq_hz)
{
bool ret = false;
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;
}

Loading…
Cancel
Save