文件夹递归创建,避免第一次运行时因文件夹不存在导致程序崩溃

This commit is contained in:
tangchao0503
2025-09-09 13:45:22 +08:00
parent b353303431
commit 985374a323
2 changed files with 2 additions and 2 deletions

View File

@ -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++;