hybridgroup / cylon-intel-iot

Cylon adaptors for the Intel Edison & Galileo
http://cylonjs.com
Other
35 stars 9 forks source link

Adds i2c port selection on write #20

Closed ecowden closed 8 years ago

ecowden commented 8 years ago

In adapter.js, there is an option named i2cPort to set the i2c port. It is used when reading from i2c, but not when writing. This is causing me errors when I try to use the Sparkfun Edison boards, which use i2c port 1 by default. See #12.

This itty bitty PR checks that option on write, too.

deadprogram commented 8 years ago

Thanks for correcting that oversight, @ecowden

Merging.