forked from xuos/xiuos
add debug info
This commit is contained in:
@@ -180,6 +180,7 @@ static void RestartApplication(void)
|
|||||||
unsigned long pid = PrivUserTaskSearch();
|
unsigned long pid = PrivUserTaskSearch();
|
||||||
if (pid > 0)
|
if (pid > 0)
|
||||||
{
|
{
|
||||||
|
printf("kill usertask pid[%d]\n",pid);
|
||||||
PrivTaskDelete(pid, 0);
|
PrivTaskDelete(pid, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -187,6 +188,7 @@ static void RestartApplication(void)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
printf("restart main.\n");
|
||||||
PrivTaskCreate(&restart_main, &attr, (void *)main, NULL);
|
PrivTaskCreate(&restart_main, &attr, (void *)main, NULL);
|
||||||
}
|
}
|
||||||
static int OtaDataRecv(struct Adapter* adapter)
|
static int OtaDataRecv(struct Adapter* adapter)
|
||||||
|
|||||||
Reference in New Issue
Block a user