Skip to content

Commit

Permalink
fix bandwidth
Browse files Browse the repository at this point in the history
  • Loading branch information
losehu committed Feb 10, 2025
1 parent bf67e04 commit 813359c
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions tle/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ uint32_t fMeasure = 0;
uint8_t freqInputIndex = 0;
KEY_Code_t freqInputArr[12];

uint16_t listenT = 0;
const uint16_t RSSI_MAX_VALUE = 65535;
char freqInputString[13];
PeakInfo peak;
Expand Down Expand Up @@ -227,20 +226,14 @@ uint16_t GetRegMenuValue(uint8_t st) {

void UpdateListening() {
// preventKeypress = false;
listenT = 0;

if (listenT) {
listenT--;
SYSTEM_DelayMs(1);
return;
}




Measure();
peak.rssi = scanInfo.rssi;

if (IsPeakOverLevel() || monitorMode) {
listenT = 1000;
return;
}

Expand Down Expand Up @@ -356,12 +349,8 @@ void ToggleRX(bool on) {
ToggleAFDAC(on);
ToggleAFBit(on);

if (on) {
listenT = 1000;
BK4819_WriteRegister(0x43, listenBWRegValues[settings.listenBw]);
} else {
BK4819_WriteRegister(0x43, GetBWRegValueForScan());
}
BK4819_WriteRegister(0x43, listenBWRegValues[settings.listenBw]);

}


Expand Down

0 comments on commit 813359c

Please sign in to comment.