From 2ebaf39c5a71d597481df1aa7051868dc4495237 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Fri, 13 Dec 2019 16:40:30 +0100 Subject: [PATCH] ZMQ: transmit zeros if buffer is not provided --- lib/src/phy/rf/rf_zmq_imp_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/phy/rf/rf_zmq_imp_tx.c b/lib/src/phy/rf/rf_zmq_imp_tx.c index ff0a871af..8465cd799 100644 --- a/lib/src/phy/rf/rf_zmq_imp_tx.c +++ b/lib/src/phy/rf/rf_zmq_imp_tx.c @@ -131,7 +131,7 @@ static int _rf_zmq_tx_baseband(rf_zmq_tx_t* q, cf_t* buffer, uint32_t nsamples) } // convert samples if necessary - void *buf = buffer; + void* buf = (buffer) ? buffer : q->zeros; uint32_t sample_sz = sizeof(cf_t); if (q->sample_format == ZMQ_TYPE_SC16) {