From 8cc09dd135d43bda03fc0269caa90b146ebda262 Mon Sep 17 00:00:00 2001 From: wu58430 Date: Thu, 7 Dec 2023 14:24:34 +0800 Subject: [PATCH] add back mdc rx --- app/app.c | 4 ++++ driver/bk4819.c | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/app.c b/app/app.c index ee96e27..51191e8 100644 --- a/app/app.c +++ b/app/app.c @@ -707,6 +707,10 @@ static void CheckRadioInterrupts(void) g_FSK_Buffer[gFSKWriteIndex++] = BK4819_ReadRegister(BK4819_REG_5F); AIRCOPY_StorePacket(); } +#endif +#ifdef ENABLE_MDC1200 + MDC1200_process_rx( interrupt_status_bits); + #endif } } diff --git a/driver/bk4819.c b/driver/bk4819.c index 8366b7c..0ce24e9 100644 --- a/driver/bk4819.c +++ b/driver/bk4819.c @@ -1784,9 +1784,8 @@ void BK4819_PlayDTMFEx(bool bLocalLoopback, char Code) BK4819_ExitTxMute(); } -//ENABLE_MDC1200 -#define h -#ifdef h + +#ifdef ENABLE_MDC1200 void BK4819_start_tone(const uint16_t frequency, const unsigned int level, const bool tx, const bool tx_mute) { SYSTEM_DelayMs(1);