std::string cat1_pyver = uapi_dev_runtime_get_cat1_pyver();
if(cat1_pyver == "PY_SRV_V27")
{
+ LOS_Msleep(1000);
push_ota_status(OTA_UI_STATUS_FORCE_START);
const char * text1 = "EG8AK1022V27_1";
- ln_ota_get_task_http_CAT1(uapi_ln_get_device_id(), uapi_ln_get_device_token(), text1);
+ if(ERRCODE_SUCC == ln_ota_get_task_http_CAT1(uapi_ln_get_device_id(), uapi_ln_get_device_token(), text1))
+ {
+ LOS_Msleep(1000);
+ }
+ else
+ {
+ ln_ota_get_task_http_CAT1(uapi_ln_get_device_id(), uapi_ln_get_device_token(), text1);
+ }
const char * text2 = "EG8AK1022V27_2";
- ln_ota_get_task_http_CAT1(uapi_ln_get_device_id(), uapi_ln_get_device_token(), text2);
-
+ if(ERRCODE_SUCC == ln_ota_get_task_http_CAT1(uapi_ln_get_device_id(), uapi_ln_get_device_token(), text2))
+ {
+ LOS_Msleep(1000);
+ }
+ else
+ {
+ ln_ota_get_task_http_CAT1(uapi_ln_get_device_id(), uapi_ln_get_device_token(), text2);
+ }
}
else
{