diff options
| author | Keith Packard <keithp@keithp.com> | 2009-04-17 10:29:42 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2009-04-17 10:29:42 -0700 |
| commit | 293a357911090a2f37bdd6f7ea96942079ffdf2e (patch) | |
| tree | ec7b3590ecbdf8e1df28b62b890b81a2f0487e7f /target/radio/recv.c | |
| parent | 20834caf01ddf481e8362b0d2627ef383a82e09d (diff) | |
Add CRC to radio packets
Diffstat (limited to 'target/radio/recv.c')
| -rw-r--r-- | target/radio/recv.c | 6 |
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; |
