BYP/RAW removed by default, can be enabled by compile option

This commit is contained in:
Krzysiek Egzmont
2023-11-03 12:51:06 +01:00
parent 21535c9ca0
commit b0a01cd8cf
3 changed files with 15 additions and 1 deletions

View File

@@ -49,8 +49,11 @@ const char gModulationStr[][4] =
"FM",
"AM",
"USB",
#ifdef ENABLE_BYP_RAW_DEMODULATORS
"BYP",
"RAW"
#endif
};
bool RADIO_CheckValidChannel(uint16_t Channel, bool bCheckScanList, uint8_t VFO)
@@ -929,12 +932,15 @@ void RADIO_SetModulation(ModulationMode_t modulation)
case MODULATION_USB:
mod = BK4819_AF_BASEBAND2;
break;
#ifdef ENABLE_BYP_RAW_DEMODULATORS
case MODULATION_BYP:
mod = BK4819_AF_UNKNOWN3;
break;
case MODULATION_RAW:
mod = BK4819_AF_BASEBAND1;
break;
#endif
}
BK4819_SetAF(mod);