文件夹递归创建,避免第一次运行时因文件夹不存在导致程序崩溃
This commit is contained in:
@ -423,7 +423,7 @@ static void *UserFcSubscription_Task(void *arg)
|
||||
|
||||
// printf("command---:%s\n",command);
|
||||
system(command);
|
||||
system("mkdir /media/nvme/300TC/config");
|
||||
system("mkdir -p /media/nvme/300TC/config");
|
||||
system("echo \"1\" > /media/nvme/300TC/config/timesyncfromdji");
|
||||
}
|
||||
counter++;
|
||||
|
||||
Reference in New Issue
Block a user