0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-18 22:29:50 +03:00

Only append DTMF-ID to TX user code if D_DCD is enable

This commit is contained in:
OneOfEleven
2023-09-17 16:51:35 +01:00
parent 71375f31b2
commit 66afde980a
11 changed files with 71 additions and 41 deletions

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
#include <stdio.h> // NULL
#include "bk4819.h"
#include "bsp/dp32g030/gpio.h"
#include "bsp/dp32g030/portcon.h"
@ -818,6 +820,10 @@ void BK4819_PlayDTMF(char Code)
void BK4819_PlayDTMFString(const char *pString, bool bDelayFirst, uint16_t FirstCodePersistTime, uint16_t HashCodePersistTime, uint16_t CodePersistTime, uint16_t CodeInternalTime)
{
unsigned int i;
if (pString == NULL)
return;
for (i = 0; pString[i]; i++)
{
uint16_t Delay;