Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-imgsrv
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-imgsrv
Commits
e0a3e5fa
Commit
e0a3e5fa
authored
Mar 07, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print serial number in meta
parent
007add13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
imgsrv.c
src/imgsrv.c
+1
-2
No files found.
src/imgsrv.c
View file @
e0a3e5fa
...
@@ -203,7 +203,7 @@ int readCameraSerialNumberFromSysFS(char *path,char *serial){
...
@@ -203,7 +203,7 @@ int readCameraSerialNumberFromSysFS(char *path,char *serial){
int
fd
;
int
fd
;
fd
=
open
(
path
,
O_RDONLY
);
fd
=
open
(
path
,
O_RDONLY
);
if
(
fd
<
0
)
return
-
1
;
if
(
fd
<
0
)
return
-
1
;
read
(
fd
,
serial
,
s
izeof
(
serial
));
read
(
fd
,
serial
,
s
trlen
(
serial
));
close
(
fd
);
close
(
fd
);
return
0
;
return
0
;
}
}
...
@@ -297,7 +297,6 @@ int printExifXML(int exif_page, struct file_set *fset)
...
@@ -297,7 +297,6 @@ int printExifXML(int exif_page, struct file_set *fset)
// Camera Serial Number
// Camera Serial Number
readCameraSerialNumberFromSysFS
(
&
path_to_serial
,
CameraSerialNumber
);
readCameraSerialNumberFromSysFS
(
&
path_to_serial
,
CameraSerialNumber
);
printf
(
"<CameraSerialNumber>
\"
%s
\"
</CameraSerialNumber>
\n
"
,
CameraSerialNumber
);
printf
(
"<CameraSerialNumber>
\"
%s
\"
</CameraSerialNumber>
\n
"
,
CameraSerialNumber
);
printf
(
"<CameraSerialNamber2>
\"
FFFFFFFFFFFF
\"
</CameraSerialNamber2>
\n
"
);
// Image Description
// Image Description
if
(
exif_dir
[
Exif_Image_ImageDescription_Index
].
ltag
==
Exif_Image_ImageDescription
)
{
// Exif_Image_ImageDescription is present in template
if
(
exif_dir
[
Exif_Image_ImageDescription_Index
].
ltag
==
Exif_Image_ImageDescription
)
{
// Exif_Image_ImageDescription is present in template
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment