Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
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-camogm
Commits
b07575cb
Commit
b07575cb
authored
Oct 25, 2016
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change list_raw_device return format
parent
6d817aee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
camogm_interface.php
src/camogmgui/camogm_interface.php
+13
-7
No files found.
src/camogmgui/camogm_interface.php
View file @
b07575cb
...
@@ -319,13 +319,19 @@ else if ($cmd=="list") {
...
@@ -319,13 +319,19 @@ else if ($cmd=="list") {
xml_footer
();
xml_footer
();
}
}
else
if
(
$cmd
==
"list_raw_devices"
){
else
if
(
$cmd
==
"list_raw_devices"
){
$devices
=
get_raw_dev
();
$devices
=
get_raw_dev
();
foreach
(
$devices
as
$device
=>
$size
)
{
echo
"<item>"
;
xml_header
();
echo
"<raw_device>"
.
$device
.
"</raw_device>"
;
echo
"<command>"
.
$cmd
.
"</command>"
;
echo
"<size>"
.
round
(
$size
/
1048576
,
2
)
.
"</size>"
;
echo
"<"
.
$cmd
.
">"
;
echo
"</item>"
;
foreach
(
$devices
as
$device
=>
$size
)
{
}
echo
"<item>"
;
echo
"<raw_device>"
.
$device
.
"</raw_device>"
;
echo
"<size>"
.
round
(
$size
/
1048576
,
2
)
.
"</size>"
;
echo
"</item>"
;
}
echo
"</"
.
$cmd
.
">"
;
xml_footer
();
}
}
else
if
(
$cmd
==
"list_partitions"
){
else
if
(
$cmd
==
"list_partitions"
){
$partitions
=
get_partitions
();
$partitions
=
get_partitions
();
...
...
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