From abe6eddc58dd981fd4a473661ab793fe6097b838 Mon Sep 17 00:00:00 2001 From: "bsongis@gmail.com" Date: Tue, 23 Jul 2013 21:25:11 +0000 Subject: [PATCH] [Taranis] Backlight brightness. Wrong brightness used during the splash --- src/targets/taranis/board_taranis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/targets/taranis/board_taranis.h b/src/targets/taranis/board_taranis.h index 330001acb..c10273d76 100644 --- a/src/targets/taranis/board_taranis.h +++ b/src/targets/taranis/board_taranis.h @@ -159,7 +159,7 @@ void pwrOff(); #define EXTERNAL_RF_OFF() GPIO_ResetBits(GPIOPWR, PIN_EXT_RF_PWR) // Backlight driver -#define setBacklight(xx) TIM10->CCR1 = xx +#define setBacklight(xx) TIM10->CCR1 = 100-xx #define __BACKLIGHT_ON TIM10->CCR1 = 100-g_eeGeneral.backlightBright #define __BACKLIGHT_OFF TIM10->CCR1 = 0 #define IS_BACKLIGHT_ON() (TIM10->CCR1 != 0)