Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-camvc
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-web-camvc
Commits
4ab23331
Commit
4ab23331
authored
Nov 02, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Elphel/elphel-web-camvc
parents
bbde16ff
e0d3046f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
camvc.php
src/camvc.php
+4
-3
No files found.
src/camvc.php
View file @
4ab23331
...
@@ -344,13 +344,14 @@ function decodeGet ($encoded_get) {
...
@@ -344,13 +344,14 @@ function decodeGet ($encoded_get) {
/// _time - will look at FPGA time and program both FPGA and system, _stime - unconditionally program both
/// _time - will look at FPGA time and program both FPGA and system, _stime - unconditionally program both
case
"_time"
:
case
"_time"
:
$toRead
[
"req_ts"
]
=
$value
;
/// Request time stamp, as received. Will be used by sender
$toRead
[
"req_ts"
]
=
$value
;
/// Request time stamp, as received. Will be used by sender
if
(
elphel_get_fpga_time
()
>
100000000
)
break
;
// time already set
$a
=
((
float
)
$value
)
/
1000
;
if
(
abs
(
elphel_get_fpga_time
()
-
$a
)
<
24
*
3600
)
break
;
// time already set
case
"_stime"
:
case
"_stime"
:
$toRead
[
"req_ts"
]
=
$value
;
$toRead
[
"req_ts"
]
=
$value
;
$a
=
((
float
)
$value
)
/
1000
;
$a
=
((
float
)
$value
)
/
1000
;
elphel_set_fpga_time
(
$a
);
// set FPGA time
elphel_set_fpga_time
(
$a
);
// set FPGA time
exec
(
"date -s "
.
date
(
"mdHiY.s"
,(
int
)
$a
),
$out
,
$ret
);
// set system time
exec
(
"date -s "
.@
date
(
"Y-m-d H:i:s.u"
,(
int
)
$a
),
$out
,
$ret
);
// set system time
exec
(
"hwclock --systohc"
);
break
;
break
;
case
"imgsrv"
:
case
"imgsrv"
:
// $toRead["imgsrv"]='http://'.$_SERVER['HTTP_HOST'].':8081/';
// $toRead["imgsrv"]='http://'.$_SERVER['HTTP_HOST'].':8081/';
...
...
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