diff --git a/functions.c b/functions.c index bc5498b..70087f6 100644 --- a/functions.c +++ b/functions.c @@ -39,7 +39,7 @@ void FUNCTION_Init(void) gCopyOfCodeType = gCodeType; if (g_20000381 == 0) { if (gInfoCHAN_A->_0x0033 == true) { - gCopyOfCodeType = 0; + gCopyOfCodeType = CODE_TYPE_OFF; } else { gCopyOfCodeType = gInfoCHAN_A->pDCS_Current->CodeType; } diff --git a/radio.c b/radio.c index e874e0c..7b173f1 100644 --- a/radio.c +++ b/radio.c @@ -629,8 +629,8 @@ void RADIO_PrepareTransmit(void) BK4819_SetupPowerAmplifier(gCrossTxRadioInfo->TXP_CalculatedSetting, gCrossTxRadioInfo->pDCS_Reverse->Frequency); SYSTEM_DelayMs(10); - if (gCrossTxRadioInfo->pDCS_Reverse->CodeType != 1) { - if ((gCrossTxRadioInfo->pDCS_Reverse->CodeType != 2) && (gCrossTxRadioInfo->pDCS_Reverse->CodeType != 3)) { + if (gCrossTxRadioInfo->pDCS_Reverse->CodeType != CODE_TYPE_CONTINUOUS_TONE) { + if ((gCrossTxRadioInfo->pDCS_Reverse->CodeType != CODE_TYPE_DIGITAL) && (gCrossTxRadioInfo->pDCS_Reverse->CodeType != CODE_TYPE_REVERSE_DIGITAL)) { BK4819_ExitSubAu(); return; }