Commit 0e9e56d7 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

apply key for time

parent bd363b03
...@@ -60,7 +60,7 @@ function cmd_time(){ ...@@ -60,7 +60,7 @@ function cmd_time(){
$ts_formatted = date("Y-m-d H:i:s.$ts_ms",$ts_s); $ts_formatted = date("Y-m-d H:i:s.$ts_ms",$ts_s);
print("Your time: $ts_s.$ts_ms ($ts_formatted)\nCamera time: $t\n"); print("Your time: $ts_s.$ts_ms ($ts_formatted)\nCamera time: $t\n");
if (abs($ts_s-$t)>24*3600){ if (isset($_GET['apply'])||(abs($ts_s-$t)>24*3600)){
elphel_set_fpga_time($_GET['ts']/1000); elphel_set_fpga_time($_GET['ts']/1000);
exec("date -s $ts_formatted"); exec("date -s $ts_formatted");
exec("hwclock --systohc"); exec("hwclock --systohc");
......
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