Skip to content

Commit

Permalink
for release
Browse files Browse the repository at this point in the history
  • Loading branch information
fagci committed Oct 28, 2023
1 parent f15c782 commit 4dcc901
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ TARGET = firmware

ENABLE_AIRCOPY := 0
ENABLE_AM_FIX := 1
ENABLE_FMRADIO := 0
ENABLE_FMRADIO := 1
ENABLE_OVERLAY := 0
ENABLE_SPECTRUM := 1
ENABLE_SWD := 0
ENABLE_TX1750 := 1
ENABLE_UART := 1
ENABLE_NOSCANTIMEOUT := 1
ENABLE_KEEPNAMEONSAVE := 1
ENABLE_ALL_REGISTERS := 1
ENABLE_ALL_REGISTERS := 0
ENABLE_FASTER_CHANNEL_SCAN := 1
ENABLE_UART_CAT := 1

Expand Down
20 changes: 15 additions & 5 deletions app/spectrum.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,13 @@ static void ToggleRX(bool on) {

if (on) {
listenT = 1000;
// BK4819_WriteRegister(0x43, GetBWRegValueForListen());
#ifndef ENABLE_ALL_REGISTERS
BK4819_WriteRegister(0x43, GetBWRegValueForListen());
#endif
} else {
// BK4819_WriteRegister(0x43, GetBWRegValueForScan());
#ifndef ENABLE_ALL_REGISTERS
BK4819_WriteRegister(0x43, GetBWRegValueForScan());
#endif
}
}

Expand Down Expand Up @@ -1277,12 +1281,18 @@ static void UpdateListening() {
redrawScreen = true;

if (currentState == SPECTRUM) {
// BK4819_WriteRegister(0x43, GetBWRegValueForScan());
#ifndef ENABLE_ALL_REGISTERS
BK4819_WriteRegister(0x43, GetBWRegValueForScan());
#endif
Measure();
// BK4819_WriteRegister(0x43, GetBWRegValueForListen());
#ifndef ENABLE_ALL_REGISTERS
BK4819_WriteRegister(0x43, GetBWRegValueForListen());
#endif
} else {
Measure();
// BK4819_WriteRegister(0x43, GetBWRegValueForListen());
#ifndef ENABLE_ALL_REGISTERS
BK4819_WriteRegister(0x43, GetBWRegValueForListen());
#endif
}

peak.rssi = scanInfo.rssi;
Expand Down

0 comments on commit 4dcc901

Please sign in to comment.