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
aa48b7c8
Commit
aa48b7c8
authored
Sep 28, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Terminating EEPROM data with 0
parent
d9c05168
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
i2c_include.php
src/php_top/i2c_include.php
+1
-0
No files found.
src/php_top/i2c_include.php
View file @
aa48b7c8
...
@@ -103,6 +103,7 @@ function i2c_write256b_sensor($data, ///< Sring to write
...
@@ -103,6 +103,7 @@ function i2c_write256b_sensor($data, ///< Sring to write
///< @return number of bytes written
///< @return number of bytes written
{
{
$len
=
0
;
$len
=
0
;
if
(
strlen
(
$data
)
<
256
)
$data
.=
chr
(
0
);
for
(
$ra
=
0
;
$ra
<
strlen
(
$data
);
$ra
++
){
for
(
$ra
=
0
;
$ra
<
strlen
(
$data
);
$ra
++
){
$b
=
ord
(
substr
(
$data
,
$ra
,
1
));
$b
=
ord
(
substr
(
$data
,
$ra
,
1
));
if
((
$d
=
i2c_send_sensor
(
$name
,
$sensor_port
,
$ra
,
$b
,
$sa7_offset
))
<
0
)
break
;
if
((
$d
=
i2c_send_sensor
(
$name
,
$sensor_port
,
$ra
,
$b
,
$sa7_offset
))
<
0
)
break
;
...
...
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