summaryrefslogtreecommitdiff
path: root/target/radio/recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/radio/recv.c')
-rw-r--r--target/radio/recv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/target/radio/recv.c b/target/radio/recv.c
index 17a3d178..1f50d8a9 100644
--- a/target/radio/recv.c
+++ b/target/radio/recv.c
@@ -53,8 +53,10 @@ main ()
break;
/* get excited if the packet came through correctly */
- if (i == PACKET_LEN) {
- for (i = 0; i < 3; i++){
+ if (i == PACKET_LEN &&
+ packet[PACKET_LEN+1] & PKT_APPEND_STATUS_1_CRC_OK)
+ {
+ for (i = 0; i < 5; i++){
P1 = 2;
delay(100);
P1 = 0;