0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 22:58:04 +03:00

TX disabled when radio set to 'AM' - compile option

This commit is contained in:
OneOfEleven
2023-09-11 08:45:29 +01:00
parent e5294129ae
commit 9ebe5b4e56
9 changed files with 58 additions and 55 deletions

View File

@ -98,22 +98,4 @@ void SystickHandler(void)
if (gVoxStopCountdown)
gVoxStopCountdown--;
#if 0
if (gCurrentFunction == FUNCTION_TRANSMIT || gBacklightCountdown > 0)
{
GPIO_SetBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT); // turn the backlight ON
}
else
if (gEeprom.BACKLIGHT >= 5)
{ // backlight ON - half brightness
// was hoping to use this but don't like the odd flicker
if (gGlobalSysTickCounter & 1)
GPIO_SetBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT); // turn the backlight ON
else
GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT); // turn the backlight OFF
}
else
GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT); // turn the backlight OFF
#endif
}