add debug info

This commit is contained in:
Wang_Weigen 2021-11-29 17:46:18 +08:00
parent 32cb324324
commit 1c60efe8a8
1 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,7 @@ static void RestartApplication(void)
unsigned long pid = PrivUserTaskSearch();
if (pid > 0)
{
printf("kill usertask pid[%d]\n",pid);
PrivTaskDelete(pid, 0);
}
else
@ -187,6 +188,7 @@ static void RestartApplication(void)
break;
}
}
printf("restart main.\n");
PrivTaskCreate(&restart_main, &attr, (void *)main, NULL);
}
static int OtaDataRecv(struct Adapter* adapter)