Comparing version
@@ -9,3 +9,3 @@ /* tessel to tessel | ||
pipes = [0xF0F0F0F0E1, 0xF0F0F0F0D2], | ||
role = 'ping'; // swap this to pong if you want to wait for receive | ||
role = 'pong'; // swap this to pong if you want to wait for receive | ||
@@ -12,0 +12,0 @@ var nrf = NRF24.channel(0x4c) // set the RF channel to 76. Frequency = 2400 + RF_CH [MHz] = 2476MHz |
@@ -10,3 +10,3 @@ /* | ||
pipes = [0xF0F0F0F0E1, 0xF0F0F0F0D2], | ||
role = 'ping'; // swap this to pong if you want to wait for receive | ||
role = 'pong'; // swap this to pong if you want to wait for receive | ||
@@ -13,0 +13,0 @@ var nrf = NRF24.channel(0x4c) // set the RF channel to 76. Frequency = 2400 + RF_CH [MHz] = 2476MHz |
@@ -92,3 +92,3 @@ var q = require('queue-async'), | ||
var nrf = new events.EventEmitter(); | ||
nrf._debug = true; | ||
if (type == 'tessel') { | ||
@@ -514,3 +514,3 @@ _ce = "builtin"; | ||
// hybrid mode: polling, but of IRQ pin instead of nrf status | ||
irq.watch('fall', irqListener); | ||
irq.on('fall', irqListener); | ||
} else { | ||
@@ -527,3 +527,3 @@ console.warn("Recommend use with IRQ pin, fallback handling is suboptimal."); | ||
else if (irq && !tessel) irq.removeListener('fall', irqListener); | ||
else if (tessel) irq.unwatch('fall'); | ||
else if (tessel) irq.removeListener('fall', irqListener); | ||
else clearInterval(irqListener); | ||
@@ -530,0 +530,0 @@ irqOn = false; |
{ | ||
"name": "rf-nrf24", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "nRF24L01 driver library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
61878
0.06%1220
0.08%1
Infinity%