Infinite loop in stream
opened this issue · comments
Deleted user commented
I call i2c::stream (https://github.com/kelly/node-i2c/blob/master/lib/i2c.coffee#L62). I expect it to be asynchronous, but it blocks thread. As I can see, it calls wire::readBlock with non-null delay (https://github.com/kelly/node-i2c/blob/master/src/i2c.cc#L121). So it enters while-loop and never exits. I tried, but I can't see any other thread start. What am I doing wrong? Have you ever realy tested i2c::stream?
Kelly commented
fixed in main branch.
Deleted user commented
I already rewrited everything in C, but, lol, thanks!