Fix ZMQ typo

This commit is contained in:
Xavier Arteaga 2020-03-13 10:07:34 +01:00 committed by Xavier Arteaga
parent 5af89513eb
commit 66b98cf224
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

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