From 92f6ede50801c2883f68e4c97e922812e9ac7a9b Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Wed, 1 Mar 2023 09:18:04 -0500 Subject: [PATCH] source code formatting; document how to disable silence threshold; --- config.example.yml | 6 +++--- nxdn/NXDNDefines.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config.example.yml b/config.example.yml index 0595724d..53352833 100644 --- a/config.example.yml +++ b/config.example.yml @@ -123,7 +123,7 @@ protocols: callHang: 5 # Amount of time to continue transmitting after the end of traffic. txHang: 8 - # BER/Error threshold for silencing voice packets. + # BER/Error threshold for silencing voice packets. (0 or 141 disables) silenceThreshold: 21 # Internal data queue size (in DMR packets). queueSize: 31 @@ -196,7 +196,7 @@ protocols: unitToUnitAvailCheck: true # Flag indicating whether or not the host will respond to SNDCP data grant requests. sndcpGrant: false - # BER/Error threshold for silencing voice packets. + # BER/Error threshold for silencing voice packets. (0 or 1233 disables) silenceThreshold: 124 # Flag indicating whether or not a voice HDU will transmitted at the start of a call from the network. disableNetworkHDU: false @@ -241,7 +241,7 @@ protocols: dumpRcchData: false # Amount of time to hang after a voice call. callHang: 5 - # BER/Error threshold for silencing voice packets. + # BER/Error threshold for silencing voice packets. (0 or 144 disables) silenceThreshold: 14 # Internal data queue size (in NXDN packets). queueSize: 12 diff --git a/nxdn/NXDNDefines.h b/nxdn/NXDNDefines.h index d7b03b41..134767d8 100644 --- a/nxdn/NXDNDefines.h +++ b/nxdn/NXDNDefines.h @@ -124,8 +124,8 @@ namespace nxdn const uint32_t NXDN_CAC_SHORT_CRC_LENGTH_BITS = 126U; // Data + CRC-16 + 4-bit NULL const uint32_t NXDN_CAC_SHORT_LENGTH_BITS = 106U; - const uint32_t NXDN_RTCH_LC_LENGTH_BITS = 176U; - const uint32_t NXDN_RTCH_LC_LENGTH_BYTES = (NXDN_RTCH_LC_LENGTH_BITS / 8U); + const uint32_t NXDN_RTCH_LC_LENGTH_BITS = 176U; + const uint32_t NXDN_RTCH_LC_LENGTH_BYTES = (NXDN_RTCH_LC_LENGTH_BITS / 8U); const uint32_t NXDN_RCCH_LC_LENGTH_BITS = 144U; const uint32_t NXDN_RCCH_LC_LENGTH_BYTES = (NXDN_RCCH_LC_LENGTH_BITS / 8U);