From e58760231abbe6ccbea43cf7874a59c28014bb53 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Thu, 14 Nov 2019 18:20:04 +0100 Subject: [PATCH] Fix building with FIXED_BRIGHTNESS @thanks uwabami --- arm11/source/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arm11/source/main.c b/arm11/source/main.c index 9e7424e..32b1429 100644 --- a/arm11/source/main.c +++ b/arm11/source/main.c @@ -43,9 +43,8 @@ static const u8 brightness_lvls[] = { 0x79, 0x8C, 0xA7, 0xD2 }; static int prev_bright_lvl = -1; -#endif - static bool auto_brightness = true; +#endif void VBlank_Handler(u32 __attribute__((unused)) irqn) { @@ -149,6 +148,7 @@ void PXI_RX_Handler(u32 __attribute__((unused)) irqn) case PXI_BRIGHTNESS: { ret = LCD_GetBrightness(); + #ifndef FIXED_BRIGHTNESS if ((args[0] > 0) && (args[0] < 0x100)) { LCD_SetBrightness(args[0]); auto_brightness = false; @@ -156,6 +156,7 @@ void PXI_RX_Handler(u32 __attribute__((unused)) irqn) prev_bright_lvl = -1; auto_brightness = true; } + #endif break; }