From: SnickerSun Date: Wed, 17 Apr 2024 08:08:35 +0000 (+0800) Subject: 修复睡眠唤醒lcd背光会被修改的问题 X-Git-Tag: release_V1.2.70_20241020_135402~1162^2~17 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=refs%2Fchanges%2F31%2Fhead;p=mirrors%2FFD230.git 修复睡眠唤醒lcd背光会被修改的问题 --- diff --git a/code/sdk/drivers/peripheral/lcd/lcd_config.c b/code/sdk/drivers/peripheral/lcd/lcd_config.c index 1687a7a1f..9d396961c 100644 --- a/code/sdk/drivers/peripheral/lcd/lcd_config.c +++ b/code/sdk/drivers/peripheral/lcd/lcd_config.c @@ -142,7 +142,7 @@ const lcd_cmd_sequ g_edo_466x466_screen_init_on[] = { {1, 2, {0x3a, 0x77}, 0}, {1, 2, {0x35, 0x00}, 0}, {1, 2, {0x53, 0x20}, 0}, - {1, 2, {0x51, 0xff}, 0}, + // {1, 2, {0x51, 0xff}, 0}, {1, 2, {0x63, 0xff}, 0}, {1, 5, {0x2A, 0x00, 0x06, 0x01, 0xd7}, 0}, {1, 5, {0x2B, 0x00, 0x00, 0x01, 0xd1}, 0}, diff --git a/code/sdk/drivers/peripheral/lcd/soc_lcd_api.c b/code/sdk/drivers/peripheral/lcd/soc_lcd_api.c index 8761d3f46..63f223555 100644 --- a/code/sdk/drivers/peripheral/lcd/soc_lcd_api.c +++ b/code/sdk/drivers/peripheral/lcd/soc_lcd_api.c @@ -173,7 +173,8 @@ static ext_errno lcd_get_ops(void) } } - g_lcd_info.brightness = DEFAULT_BRIGHTNESS; + if (g_lcd_info.brightness == 0) + g_lcd_info.brightness = DEFAULT_BRIGHTNESS; return EXT_ERR_SUCCESS; fail: