Fixed magic numbers.

This commit is contained in:
Dual Tachyon 2023-08-26 18:31:41 +01:00
parent eb066882b4
commit 38c7db80b3
2 changed files with 3 additions and 3 deletions

0
app.h Executable file → Normal file
View File

View File

@ -463,7 +463,7 @@ void RADIO_ConfigureCrossTX(void)
void RADIO_SetupRegisters(bool bSwitchToFunction0)
{
uint8_t Bandwidth;
BK4819_FilterBandwidth_t Bandwidth;
uint16_t Status;
uint16_t InterruptMask;
uint32_t Frequency;
@ -473,8 +473,8 @@ void RADIO_SetupRegisters(bool bSwitchToFunction0)
BK4819_ToggleGpioOut(BK4819_GPIO0_PIN28, false);
Bandwidth = gInfoCHAN_A->CHANNEL_BANDWIDTH;
if (Bandwidth != 0) { // != WIDE
Bandwidth = 1; // NARROW
if (Bandwidth != BK4819_FILTER_BW_WIDE) {
Bandwidth = BK4819_FILTER_BW_NARROW;
}
BK4819_SetFilterBandwidth(Bandwidth);