mirror of
https://github.com/No-Chicken/Power-Pico.git
synced 2026-04-03 13:02:36 +08:00
更改亮度限定范围
This commit is contained in:
@@ -137,7 +137,7 @@ bool EEPROM_UpdateCommand_Check(void)
|
|||||||
|
|
||||||
void Sys_Set_BacklightLevel(uint8_t level)
|
void Sys_Set_BacklightLevel(uint8_t level)
|
||||||
{
|
{
|
||||||
if(level <= 100 && level >= 10) {
|
if(level <= 100 && level >= 0) {
|
||||||
sys_settings.backlight_level = level;
|
sys_settings.backlight_level = level;
|
||||||
LCD_Set_Light(level);
|
LCD_Set_Light(level);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user