Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
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-393
Commits
f554871e
Commit
f554871e
authored
May 20, 2020
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switched to newer function
parent
a20f3d19
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
index.php
src/index/index.php
+3
-10
No files found.
src/index/index.php
View file @
f554871e
...
...
@@ -333,7 +333,7 @@
switch
(
pname
){
case
"AUTOEXP_EXP_MAX"
:
pvalue
=
parseInt
(
pvalue
*
1000
);
set_param
(
pname
,
pvalue
,()
=>
{
set_param
s
({[
pname
]:
pvalue
}
,()
=>
{
console
.
log
(
"ok"
);
});
break
;
...
...
@@ -343,13 +343,13 @@
if
(
$
(
'#toggle_aexp'
).
find
(
'.btn.active'
).
html
()
===
"ON"
){
$
(
'#toggle_aexp'
).
click
();
}
set_param
(
pname
,
pvalue
,()
=>
{
set_param
s
({[
pname
]:
pvalue
}
,()
=>
{
console
.
log
(
"ok"
);
});
break
;
case
"TRIG_PERIOD"
:
pvalue
=
parseInt
(
1
/
pvalue
*
10
e7
);
set_param
(
pname
,
pvalue
,()
=>
{
set_param
s
({[
pname
]:
pvalue
}
,()
=>
{
console
.
log
(
"ok"
);
update_canvas_mjpeg
();
});
...
...
@@ -395,13 +395,6 @@
}
async
function
set_param
(
pname
,
pvalue
,
callback
){
$
.
ajax
({
url
:
"parsedit.php?immediate&sensor_port=
<?php
echo
$master_port
;
?>
&"
+
pname
+
"="
+
pvalue
+
"*3&*"
+
pname
+
"=0xf"
,
success
:
callback
});
}
async
function
set_params
(
pars
,
callback
){
let
req
=
[];
...
...
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