sandeepmistry / node-chip-io

Johnny-Five IO Plugin for the Next Thing Co. C.H.I.P.
MIT License
96 stars 28 forks source link

i2cRead doesn't work when called with 3 arguments #50

Closed fivdi closed 7 years ago

fivdi commented 7 years ago

Typically i2cRead is called with 4 arguments but sometimes it's called with 3 arguments. The current implementation of i2cRead doesn't handle the "3 arguments" case correctly.

fivdi commented 7 years ago

51 is a PR for fixing this issue.

Although not strictly necessary, the PR also updates the i2c-bus dependency.