Converted magic numbers.

This commit is contained in:
Dual Tachyon 2023-08-14 17:37:20 +01:00
parent ab8c439742
commit f9eaadd974
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;
}