Fix X10 backlight (min level of 46 to prevent display interference, must be hardware problem, FrOS uses same lower limit)
This commit is contained in:
@@ -55,7 +55,7 @@ void backlightInit()
|
||||
}
|
||||
#elif defined(PCBX10)
|
||||
BL_TIMER->ARR = 100;
|
||||
BL_TIMER->PSC = BL_TIMER_FREQ / 10000 - 1; // 1kHz
|
||||
BL_TIMER->PSC = BL_TIMER_FREQ / 1000000 - 1; // 10kHz (same as FrOS)
|
||||
BL_TIMER->CCMR2 = TIM_CCMR2_OC3M_1 | TIM_CCMR2_OC3M_2 | TIM_CCMR2_OC3PE; // PWM mode 1
|
||||
BL_TIMER->CCER = TIM_CCER_CC3E | TIM_CCER_CC3NE;
|
||||
BL_TIMER->CCR3 = 100;
|
||||
|
||||
@@ -456,7 +456,7 @@ void backlightEnable(uint8_t dutyCycle);
|
||||
#if defined(PCBX12S)
|
||||
#define BACKLIGHT_LEVEL_MIN 5
|
||||
#else
|
||||
#define BACKLIGHT_LEVEL_MIN 42
|
||||
#define BACKLIGHT_LEVEL_MIN 46
|
||||
#endif
|
||||
#define BACKLIGHT_ENABLE() backlightEnable(unexpectedShutdown ? BACKLIGHT_LEVEL_MAX : BACKLIGHT_LEVEL_MAX-g_eeGeneral.backlightBright)
|
||||
#define BACKLIGHT_DISABLE() backlightEnable(unexpectedShutdown ? BACKLIGHT_LEVEL_MAX : g_eeGeneral.blOffBright)
|
||||
|
||||
Reference in New Issue
Block a user