add power save timer

This commit is contained in:
Terrence
2024-11-19 08:50:47 +08:00
parent 6bfe2719a8
commit 874adc80b8
7 changed files with 74 additions and 29 deletions

View File

@@ -61,6 +61,8 @@ void Application::CheckNewVersion() {
display->SetIcon(FONT_AWESOME_DOWNLOAD);
display->SetStatus("新版本 " + ota_.GetFirmwareVersion());
// 预先关闭音频输出,避免升级过程有音频操作
board.GetAudioCodec()->EnableOutput(false);
ota_.StartUpgrade([display](int progress, size_t speed) {