spectrum rx led on when max screen brightness > 7

This commit is contained in:
Nunu 2024-01-16 11:04:21 +01:00
parent 99e9862f0e
commit 1b3524f5c2

View File

@ -383,8 +383,8 @@ static void ToggleAudio(bool on) {
static void ToggleRX(bool on) { static void ToggleRX(bool on) {
isListening = on; isListening = on;
// turn on green led only if screen brightness set to max // turn on green led only if screen brightness is over 7
if(gEeprom.BACKLIGHT_MAX == 10) if(gEeprom.BACKLIGHT_MAX > 7)
BK4819_ToggleGpioOut(BK4819_GPIO6_PIN2_GREEN, on); BK4819_ToggleGpioOut(BK4819_GPIO6_PIN2_GREEN, on);
ToggleAudio(on); ToggleAudio(on);
@ -400,8 +400,8 @@ static void ToggleRX(bool on) {
// turn on CSS tail found interrupt // turn on CSS tail found interrupt
BK4819_WriteRegister(BK4819_REG_3F, BK4819_REG_02_CxCSS_TAIL); BK4819_WriteRegister(BK4819_REG_3F, BK4819_REG_02_CxCSS_TAIL);
} else { } else {
if(appMode!=CHANNEL_MODE) if(appMode!=CHANNEL_MODE)
BK4819_WriteRegister(0x43, GetBWRegValueForScan()); BK4819_WriteRegister(0x43, GetBWRegValueForScan());
isListening = false; isListening = false;
} }
} }