Add lower limit to audio

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

No files matched your search

+1 -1
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; // 设置一个较低的默认值
}