diff --git a/index.js b/index.js index 5995dd7..d8616ad 100644 --- a/index.js +++ b/index.js @@ -394,7 +394,7 @@ exports.connect = function (spi,ce,irq) { console.warn("Recommend use with IRQ pin, fallback handling is suboptimal."); irqListener = setInterval(function () { // TODO: clear interval when there are no listeners? if (nrf.listeners('interrupt').length) nrf._checkStatus(false); - }, 0); // (minimum 4ms is a looong time if hoping to quickly stream data!) + }, 4); // (minimum 4ms is a looong time if hoping to quickly stream data!) } irqOn = true; }; @@ -678,4 +678,4 @@ exports.connect = function (spi,ce,irq) { nrf.on('interrupt', function (d) { if (nrf._debug) console.log("IRQ.", d); }); return nrf; -} \ No newline at end of file +}