From 75aa9a85a6cbe8b02668f81b0638558259c6c92f Mon Sep 17 00:00:00 2001 From: David Freese Date: Sun, 18 Sep 2011 07:46:57 -0500 Subject: [PATCH] NULL modem * Added call to ModulateXmtr with empty buffer allows waterfall to drop during NULL-IDLE --- src/trx/nullmodem.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/trx/nullmodem.cxx b/src/trx/nullmodem.cxx index a97dab52..d983cb7f 100644 --- a/src/trx/nullmodem.cxx +++ b/src/trx/nullmodem.cxx @@ -33,6 +33,7 @@ #include "ascii.h" #define null_bw 1 +#define null_symbol_len 256 NULLMODEM:: NULLMODEM() : modem() { @@ -57,6 +58,8 @@ void NULLMODEM::init() { modem::init(); rx_init(); + for (int i = 0; i < null_symbol_len; i++) + outbuf[i] = 0.0; digiscope->mode(Digiscope::SCOPE); } @@ -82,10 +85,10 @@ int NULLMODEM::rx_process(const double *buf, int len) int NULLMODEM::tx_process() { - MilliSleep(10); if ( get_tx_char() == 0x03 || stopflag) { stopflag = false; return -1; } + ModulateXmtr(outbuf, null_symbol_len); return 0; }