Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-autocampars
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-autocampars
Commits
96733a43
Commit
96733a43
authored
Dec 23, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
case when 10389 board not present
parent
120481eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
autocampars.php
src/autocampars.php
+8
-1
No files found.
src/autocampars.php
View file @
96733a43
...
...
@@ -1342,7 +1342,14 @@ function get_application_mode() {
$EEPROM_chn
=
2
;
$EEPROM_bus0
=
5
;
// This currently is slow
$xml
=
simplexml_load_string
(
i2c_read256b
(
0xa0
+
(
$EEPROM_chn
*
2
),
$EEPROM_bus0
)
);
// read contents of
$info_10389
=
trim
(
i2c_read256b
(
0xa0
+
(
$EEPROM_chn
*
2
),
$EEPROM_bus0
)
);
if
(
$info_10389
!=
""
){
$xml
=
simplexml_load_string
(
$info_10389
);
// read contents of
}
else
{
log_msg
(
"10389 board is not present, loading default xml"
);
$xml
=
simplexml_load_string
(
"<board><model>10389 not present</model><rev>B</rev><serial>F80000</serial><app>MT9P006</app><mode>15</mode></board>"
);
}
if
(
$xml
===
false
)
{
log_msg
(
"10389 board not present"
);
}
else
{
...
...
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