removed some debug printf

pull/4/head
Tom Early 8 years ago
parent e586e147c6
commit abf56f1754

@ -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. entries, at the end of the file.
If you find you can no longer connect to a system, it may be because its IP 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 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 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 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"! operating "headless"!
17) DTMF is _not_ enabled by default if you want it, you need to do two things: 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 Then, install the DTMF service: sudo make installdtmf
You should be good to go, The DTMF command "00" should announce the linked 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. status of you module. See DTMF+REMOTE.README for more information.

@ -1569,9 +1569,6 @@ void CQnetGateway::process()
if ((ber_data[0] & 0x0ffc) == 0xfc0) { if ((ber_data[0] & 0x0ffc) == 0xfc0) {
dtmf_digit = (ber_data[0] & 0x03) | ((ber_data[2] & 0x60) >> 3); dtmf_digit = (ber_data[0] & 0x03) | ((ber_data[2] & 0x60) >> 3);
if (dtmf_counter[i] > 0) { 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) if (dtmf_last_frame[i] != dtmf_digit)
dtmf_counter[i] = 0; dtmf_counter[i] = 0;
} }
@ -1583,11 +1580,8 @@ void CQnetGateway::process()
const char *dtmf_chars = "147*2580369#ABCD"; const char *dtmf_chars = "147*2580369#ABCD";
dtmf_buf[i][ dtmf_buf_count[i] ] = dtmf_chars[dtmf_digit]; dtmf_buf[i][ dtmf_buf_count[i] ] = dtmf_chars[dtmf_digit];
dtmf_buf_count[i]++; 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 }; const unsigned char silence[9] = { 0x9E, 0x8D, 0x32, 0x88, 0x26, 0x1A, 0x3F, 0x61, 0xE8 };
memcpy(rptrbuf.vpkt.vasd.voice, silence, 9); memcpy(rptrbuf.vpkt.vasd.voice, silence, 9);
} else } else

Loading…
Cancel
Save

Powered by TurnKey Linux.