[Bugfix][R305][bug-view-1539][fota] During local upgrade, there is a probability of returning a loading failure, but in reality, it has already succeeded
Change-Id: I8d41c9d084eac161e0eae776f3cee54adfffb7de
diff --git a/lynq/S300_AIC/ap/app/cgi/cgi.c b/lynq/S300_AIC/ap/app/cgi/cgi.c
index 5f56ca5..87d4497 100755
--- a/lynq/S300_AIC/ap/app/cgi/cgi.c
+++ b/lynq/S300_AIC/ap/app/cgi/cgi.c
@@ -288,6 +288,7 @@
int upgradeStatus, result;
system("fota_upi -u verify > /dev/null 2>&1");
+ sleep(1);
result = fota_get_update_status(&upgradeStatus);
if(result < 0)
{
@@ -300,7 +301,6 @@
else
{
print_json_response(1, "File verification successful, start updating...");
- sleep(1);
system("fota_upi -u recovery > /dev/null 2>&1 &");
}
}