Skip to content

Commit

Permalink
intel_nuc5.c: Fixed incorrect I2C numbering, effectively not shifting…
Browse files Browse the repository at this point in the history
… the pin number correctly

Signed-off-by: Houman Brinjcargorabi <[email protected]>
Signed-off-by: Brendan Le Foll <[email protected]>
  • Loading branch information
Houman brinjcargorabi authored and arfoll committed Jun 1, 2016
1 parent a177a3f commit e8d6f38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/x86/intel_nuc5.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ mraa_intel_nuc5()
}
b->i2c_bus_count++;
b->i2c_bus[i].bus_id = i2c_num;
b->i2c_bus[i].sda = 12 + i;
b->i2c_bus[i].scl = 13 + i;
b->i2c_bus[i].sda = 12 + (i*2);
b->i2c_bus[i].scl = 13 + (i*2);
}

if (b->i2c_bus_count > 0) {
Expand Down

0 comments on commit e8d6f38

Please sign in to comment.