[CC1101] Added missing listen mode command (#72)
This commit is contained in:
parent
7ce656dd81
commit
52b08a02e4
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,7 @@ void setup() {
|
||||||
// cc.sleep()
|
// cc.sleep()
|
||||||
// cc.transmit();
|
// cc.transmit();
|
||||||
// cc.receive();
|
// cc.receive();
|
||||||
|
// cc.readData();
|
||||||
}
|
}
|
||||||
|
|
||||||
// flag to indicate that a packet was received
|
// flag to indicate that a packet was received
|
||||||
|
@ -142,6 +143,9 @@ void loop() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// put module back to listen mode
|
||||||
|
cc.startReceive();
|
||||||
|
|
||||||
// we're ready to receive more packets,
|
// we're ready to receive more packets,
|
||||||
// enable interrupt service routine
|
// enable interrupt service routine
|
||||||
enableInterrupt = true;
|
enableInterrupt = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue