From abf56f1754c76659ce005969d3cb97eb8dc52409 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Tue, 24 Apr 2018 19:55:59 -0700 Subject: [PATCH] removed some debug printf --- MMDVM.README | 4 ++-- QnetGateway.cpp | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/MMDVM.README b/MMDVM.README index fe5f510..6ca8758 100644 --- a/MMDVM.README +++ b/MMDVM.README @@ -64,7 +64,7 @@ your start. On a Raspberry Pi, you can do all of this with the configureation me entries, at the end of the file. If you find you can no longer connect to a system, it may be because its IP address has changed. You can execute either script again, copy it to - /usr/local/etc, and then either reboot you system, or put " L" in your + /usr/local/etc, and then: either reboot you system, or put " L" in your URField and key your radio, or: sudo systemctl restart qnlink 14) We have a gwys.txt file and a qn.cfg in the build directory, so we are ready @@ -91,7 +91,7 @@ your start. On a Raspberry Pi, you can do all of this with the configureation me operating "headless"! 17) DTMF is _not_ enabled by default if you want it, you need to do two things: - First, create a working DTMF script: cp qndtmf.sh qndtmf + First, create a working DTMF script. In the build directory: cp qndtmf.sh qndtmf Then, install the DTMF service: sudo make installdtmf You should be good to go, The DTMF command "00" should announce the linked status of you module. See DTMF+REMOTE.README for more information. diff --git a/QnetGateway.cpp b/QnetGateway.cpp index e6d738c..d292dca 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -1569,9 +1569,6 @@ void CQnetGateway::process() if ((ber_data[0] & 0x0ffc) == 0xfc0) { dtmf_digit = (ber_data[0] & 0x03) | ((ber_data[2] & 0x60) >> 3); if (dtmf_counter[i] > 0) { - if (bool_dtmf_debug) - printf("new digit=%d, counter[%d]=%d, lastframe=%d\n", - dtmf_digit, i, dtmf_counter[i], dtmf_last_frame[i]); if (dtmf_last_frame[i] != dtmf_digit) dtmf_counter[i] = 0; } @@ -1583,11 +1580,8 @@ void CQnetGateway::process() const char *dtmf_chars = "147*2580369#ABCD"; dtmf_buf[i][ dtmf_buf_count[i] ] = dtmf_chars[dtmf_digit]; dtmf_buf_count[i]++; - if (bool_dtmf_debug) - printf("dtmf_buf[%d] = %s\n", i, dtmf_buf[i]); } } - // const unsigned char silence[9] = { 0x4e, 0x8d, 0x32, 0x88, 0x26, 0x1a, 0x3f, 0x61, 0xe8 }; const unsigned char silence[9] = { 0x9E, 0x8D, 0x32, 0x88, 0x26, 0x1A, 0x3F, 0x61, 0xE8 }; memcpy(rptrbuf.vpkt.vasd.voice, silence, 9); } else