From 768c4992e1fc40de2aeffbfec69828c364ae8f7f Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Thu, 17 Aug 2023 22:10:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=AE=E5=BA=A6=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E7=9B=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/open_agb_firm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index 5cbf95c..01cbfdc 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -721,7 +721,7 @@ static int cfgIniCallback(void* user, const char* section, const char* name, con if(strcmp(section, "general") == 0) { if(strcmp(name, "backlight") == 0) - config->backlight = (u8)strtoul(value, NULL, 10); + config->backlight = (u16)strtoul(value, NULL, 10); else if(strcmp(name, "directBoot") == 0) config->directBoot = (strcmp(value, "false") == 0 ? false : true); else if(strcmp(name, "useGbaDb") == 0)