Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Testing
Commits
c02b3dbb
Commit
c02b3dbb
authored
Jan 11, 2012
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug for data length = 1, directly goes to last item.
parent
71ae6af7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
eeprom_24aa64.py
test/fmcadc100m14b4cha/python/eeprom_24aa64.py
+2
-1
No files found.
test/fmcadc100m14b4cha/python/eeprom_24aa64.py
View file @
c02b3dbb
...
...
@@ -19,7 +19,8 @@ class C24AA64:
for
i
in
range
(
len
(
data
)
-
1
):
#print('24AA64:write: i=%d')%(i)
self
.
i2c
.
write
(
data
[
i
],
False
)
i
+=
1
if
len
(
data
)
>
1
:
i
+=
1
#print('24AA64:write:last i=%d')%(i)
self
.
i2c
.
write
(
data
[
i
],
True
)
return
0
;
...
...
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