From b3e7c52fa1d0fee2c3c910935948f4123149ea36 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Sun, 13 Mar 2011 18:37:35 +0000 Subject: [PATCH] Put the promiscuous mode setting in setup(), not loop() --- examples/Basic_TwoWay/Basic_TwoWay.pde | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/Basic_TwoWay/Basic_TwoWay.pde b/examples/Basic_TwoWay/Basic_TwoWay.pde index 8a2b3eb..6aa79da 100644 --- a/examples/Basic_TwoWay/Basic_TwoWay.pde +++ b/examples/Basic_TwoWay/Basic_TwoWay.pde @@ -24,6 +24,10 @@ void setup() { mrf.set_pan(0xcafe); // This is _our_ address mrf.address16_write(0x6001); + + // uncomment if you want to receive any packet on this channel + // mrf.set_promiscuous(true); + attachInterrupt(0, interrupt_routine, CHANGE); last_time = millis(); } @@ -44,7 +48,6 @@ void interrupt_routine() { } void loop() { - //mrf.set_promiscuous(true); int tmp; interrupts(); unsigned long current_time = millis();