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)