From 35fb34ae988fa0e85b59fa1494f72b2e4ff502e4 Mon Sep 17 00:00:00 2001 From: liaoxianyi Date: Mon, 2 Sep 2024 07:01:06 +0000 Subject: [PATCH] =?UTF-8?q?SD=E5=8D=A1=E6=97=A0=E5=8D=A1=E5=81=9C=E7=95=99?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liaoxianyi --- services/sdcard_update/sdcard_update.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/sdcard_update/sdcard_update.cpp b/services/sdcard_update/sdcard_update.cpp index f13bf526..f248955b 100644 --- a/services/sdcard_update/sdcard_update.cpp +++ b/services/sdcard_update/sdcard_update.cpp @@ -72,6 +72,9 @@ bool DoMountSdcard(std::vector &sdcardStr, std::string &mountPoint) { bool mountSuccess = false; unsigned int retryTimes = 20; + if (upParams.sdExtMode == SDCARD_MAINIMG || upParams.sdExtMode == SDCARD_NORMAL_UPDATE) { + retryTimes = 60; + } for (unsigned int retryCount = 1; retryCount <= retryTimes; retryCount++) { LOG(INFO) << "the retry time is: " << retryCount; for (auto item : sdcardStr) { -- Gitee