aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/sdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/sdr.c')
-rw-r--r--src/common/sdr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/sdr.c b/src/common/sdr.c
index 527c291..93e591d 100644
--- a/src/common/sdr.c
+++ b/src/common/sdr.c
@@ -83,6 +83,8 @@ void *sdr_open(const char __attribute__((__unused__)) *audiodev, double *tx_freq
int rc;
int c;
+ display_iq_init(samplerate);
+
if (channels < 1) {
PDEBUG(DSDR, DEBUG_ERROR, "No channel given, please fix!\n");
abort();
@@ -283,6 +285,8 @@ int sdr_read(void *inst, int16_t **samples, int num, int channels)
if (count <= 0)
return count;
+ display_iq(buff, count);
+
for (c = 0; c < channels; c++) {
rot = sdr->chan[c].rx_rot;
phase = sdr->chan[c].rx_phase;