i2cdump double the word count if using -w
Bug #1947140 reported by
cdannebe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
i2c-tools (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi
i2cdump doubles the count of words if I use a range with option -w.
The reason is line 471 in version 4.2-2:
for (j = 0; j < 8; j++) {
/* Skip unwanted registers */
if you read word wise, you should count word wise.
for (j = 0; j < 8; j+=2) {
/* Skip unwanted registers */
Regards and many thanks for your work, Christian.
To post a comment you must log in.