From: drowe67 Date: Wed, 17 Jun 2015 20:08:56 +0000 (+0000) Subject: txt messages work on 1600 and 700 with and without checksums X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=8ce10ee51359bd843250ec8cf5c919380c62db9f;p=freetel-svn-tracking.git txt messages work on 1600 and 700 with and without checksums git-svn-id: https://svn.code.sf.net/p/freetel/code@2202 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/fdmdv2-dev/src/fdmdv2_main.cpp b/fdmdv2-dev/src/fdmdv2_main.cpp index 5ffb347c..6755c796 100644 --- a/fdmdv2-dev/src/fdmdv2_main.cpp +++ b/fdmdv2-dev/src/fdmdv2_main.cpp @@ -945,20 +945,28 @@ void MainFrame::OnTimer(wxTimerEvent &evt) // buffer 1 txt message to ensure tx data fifo doesn't "run dry" if ((unsigned)fifo_used(g_txDataInFifo) < strlen(callsign)) { - - unsigned char checksum = 0; unsigned int i; - for(i=0; iSetValue(m_callsign); } } @@ -1981,6 +1992,7 @@ void MainFrame::OnTogBtnOnOff(wxCommandEvent& event) g_half_duplex = wxGetApp().m_boolHalfDuplex; m_pcallsign = m_callsign; + memset(m_callsign, 0, sizeof(m_callsign)); m_checksumGood = m_checksumBad = 0; m_maxLevel = 0; @@ -3419,13 +3431,14 @@ void *UDPThread::Entry() { char my_get_next_tx_char(void *callback_state) { short ch = 0; - + fifo_read(g_txDataInFifo, &ch, 1); - + //fprintf(stderr, "get_next_tx_char: %c\n", (char)ch); return (char)ch; } void my_put_next_rx_char(void *callback_state, char c) { short ch = (short)c; + //fprintf(stderr, "put_next_rx_char: %c\n", (char)c); fifo_write(g_rxDataOutFifo, &ch, 1); }