natevw / node-nrf

Pure-JavaScript nRF24L01 driver library
117 stars 31 forks source link

Changed the non-IRQ checking interval #16

Open Manawyrm opened 10 years ago

Manawyrm commented 10 years ago

for some reason the interval was set to 0ms, which lead to an infinite loop of memory allocations quickly resulting in a segmentation fault.

natevw commented 10 years ago

Hmm, interesting. The DOM spec enforces a minimum timeout of 4ms regardless of what is passed, but maybe node.js handles differently. Have you tried it with a 1ms timeout? That might be the best compromise between data latency and runaway checks…