Refine delay to save power.

This commit is contained in:
Colin 2026-01-03 23:28:52 +08:00
parent fc3aa09789
commit 8ccb03d04e
1 changed files with 3 additions and 2 deletions

View File

@ -265,10 +265,11 @@ static void i2s_rx_task(void* arg) {
if (record_end1() && record_end2()) break;
// vTaskDelay(10 / portTICK_PERIOD_MS);
vTaskDelay(10 / portTICK_PERIOD_MS);
// esp_sleep_enable_timer_wakeup(50 * 1000);
// esp_sleep_enable_timer_wakeup(10 * 1000);
// esp_light_sleep_start();
} else if (ret != ESP_OK && ret != ESP_ERR_TIMEOUT) {
ESP_LOGE(TAG, "I2S读取错误: %s", esp_err_to_name(ret));
}