1.repair the separate compile error;2.modify ota init task

This commit is contained in:
Wang_Weigen
2021-11-09 16:12:07 +08:00
parent 8b2eee0aa0
commit 9959ec6470
7 changed files with 42 additions and 34 deletions
@@ -51,7 +51,7 @@ int Adapter4GInit(void)
struct Adapter *adapter = PrivMalloc(sizeof(struct Adapter));
if (!adapter) {
Privfree(adapter);
PrivFree(adapter);
return -1;
}
@@ -60,7 +60,7 @@ int Adapter4GInit(void)
ret = Adapter4GRegister(adapter);
if (ret < 0) {
printf("Adapter4GInit register 4G adapter error\n");
Privfree(adapter);
PrivFree(adapter);
return -1;
}
@@ -68,7 +68,7 @@ int Adapter4GInit(void)
AdapterProductInfoType product_info = Ec200tAttach(adapter);
if (!product_info) {
printf("Adapter4GInit ec200t attach error\n");
Privfree(adapter);
PrivFree(adapter);
return -1;
}