Add lower limit to audio

This commit is contained in:
Terrence
2025-03-22 06:03:22 +08:00
parent 3efef0cf20
commit 023dd7fb27
3 changed files with 7 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ void Backlight::RestoreBrightness() {
// 检查亮度值是否为0或过小设置默认值
if (saved_brightness <= 0) {
ESP_LOGW(TAG, "Invalid brightness value (%d), setting to default", saved_brightness);
ESP_LOGW(TAG, "Brightness value (%d) is too small, setting to default (10)", saved_brightness);
saved_brightness = 10; // 设置一个较低的默认值
}