Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down Expand Up @@ -678,4 +678,4 @@ exports.connect = function (spi,ce,irq) {
nrf.on('interrupt', function (d) { if (nrf._debug) console.log("IRQ.", d); });

return nrf;
}
}