Commit d2581e5d authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

correct application mode to exif

parent 8fdc5a62
...@@ -471,20 +471,22 @@ function substitute_value($ifd_entry) { ...@@ -471,20 +471,22 @@ function substitute_value($ifd_entry) {
$ifd_entry->addChild('value', $DeviceBrand); $ifd_entry->addChild('value', $DeviceBrand);
break; break;
case "MODEL": case "MODEL":
if (file_exists ('/var/state/APPLICATION')) { $camera_state_path = "/var/volatile/state/camera";
$model= file_get_contents('/var/state/APPLICATION'); if (file_exists ($camera_state_path)) {
if (file_exists ('/var/state/APPLICATION_MODE')) { $pars= parse_ini_file($camera_state_path);
$model.=' CHN'.file_get_contents('/var/state/APPLICATION_MODE'); $model = $pars['application']."_".$par['mode'];
}
} else { } else {
$model = $DeviceModel; $model = $DeviceModel;
} }
$ifd_entry->addChild ('value',$model); $ifd_entry->addChild ('value',$model);
break; break;
case "SOFTWARE": case "SOFTWARE":
/* TODO:
if (file_exists("/usr/html/docs/")) { if (file_exists("/usr/html/docs/")) {
$ifd_entry->addChild ('value',exec("ls /usr/html/docs/")); // filter $ifd_entry->addChild ('value',exec("ls /usr/html/docs/")); // filter
} }
*/
$ifd_entry->addChild ('value',"https://github.com/Elphel/elphel393");
break; break;
case "SERIAL": case "SERIAL":
$s = ""; $s = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment