chore: remove unused PWM_BACKLIGHT define (#4945)

Most of the code was removed between OTX 2.2 and 2.3
This commit is contained in:
philmoz
2024-05-01 09:44:52 +10:00
committed by GitHub
parent dc2998e478
commit 4f0610c551
5 changed files with 2 additions and 31 deletions
-5
View File
@@ -208,11 +208,6 @@ void per10ms()
telemetryInterrupt10ms();
// These moved here from evalFlightModeMixes() to improve beep trigger reliability.
#if defined(PWM_BACKLIGHT)
if ((g_tmr10ms&0x03) == 0x00)
backlightFade(); // increment or decrement brightness until target brightness is reached
#endif
#if !defined(AUDIO)
if (mixWarning & 1) if(((g_tmr10ms&0xFF)== 0)) AUDIO_MIX_WARNING(1);
if (mixWarning & 2) if(((g_tmr10ms&0xFF)== 64) || ((g_tmr10ms&0xFF)== 72)) AUDIO_MIX_WARNING(2);