hybridgroup / cylon-intel-iot

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

Fixes cylon issue 326. #19

Closed derrell closed 8 years ago

derrell commented 8 years ago

The adaptor was not catching errors (0-length read) while reading from i2c. If a device / sensor doesn't exist, no data will be available. This commit ensures that the callback is called with an error indication if no data is available.

deadprogram commented 8 years ago

This is great, @derrell thank you. Merging.