russtheaerialist-retired-projects / node-spi

A NodeJS interface to the SPI bus on embedded linux machines
ISC License
95 stars 32 forks source link

bitsPerWord is actually names "size" in the C bindings #13

Closed kwisatz closed 9 years ago

kwisatz commented 9 years ago

Discovered that the bitsPerWord function/argument is not recognized and saw that it is called "size".

graysonarts commented 9 years ago

Thanks for catching that!

kwisatz commented 9 years ago

You're welcome. Actually, I think there's a mismatch between the function and the attribute. The function in spi.js is indeed called bitsPerWord, but passing it as an attribute when initializing, it needs to be "size".