Put the promiscuous mode setting in setup(), not loop()

This commit is contained in:
Karl Palsson 2011-03-13 18:37:35 +00:00
parent fd58b93767
commit b3e7c52fa1
1 changed files with 4 additions and 1 deletions

View File

@ -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();