X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=target%2Fradio%2Frecv.c;fp=target%2Fradio%2Frecv.c;h=1f50d8a95721ca3eb6832a6384136db183ead36a;hp=17a3d1780358cc8125e28efa2b7f63e9efd0e4f8;hb=293a357911090a2f37bdd6f7ea96942079ffdf2e;hpb=20834caf01ddf481e8362b0d2627ef383a82e09d 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;