ENH: disable model download for P1s

Change-Id: I6913f35015119adc8abfbd0a1f0e27c65f9d6c58
Jira: none
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2023-11-09 10:09:10 +08:00
1 parent 82f59993c7
commit 92f4ba705e
9 files changed
+28 -10

No files matched your search

+1
View File
@@ -3512,6 +3512,7 @@ int MachineObject::parse_json(std::string payload)
if (ipcam.contains("file")) {
file_local = ipcam["file"].value<std::string>("local", "disabled") == "enabled";
file_remote = ipcam["file"].value<std::string>("remote", "disabled") == "enabled";
file_model_download = ipcam["file"].value<std::string>("model_download", "disabled") == "enabled";
}
virtual_camera = ipcam.value<std::string>("virtual_camera", "disabled") == "enabled";
if (ipcam.contains("rtsp_url")) {