altos/cc1200: With PQT wide open, we can't use PQT_REACHED for start
authorKeith Packard <keithp@keithp.com>
Mon, 24 Nov 2014 02:56:40 +0000 (18:56 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 24 Nov 2014 02:56:40 +0000 (18:56 -0800)
Because we're allowing even signals only weakly correlated with the
preamble through to sync detection, we can't use the PQT_REACHED
symbol to tell when a packet header has been seen. Instead, just look
for SYNC_FOUND.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_cc1200.c

index 93bb2c6c4f752b5794585ea663235d1202cb1bf7..8546900e830246650b49e31147abf05a20783707 100644 (file)
@@ -1045,8 +1045,7 @@ ao_radio_recv(__xdata void *d, uint8_t size, uint8_t timeout)
                        /* Check to see if the packet header has been seen, in which case we'll
                         * want to keep waiting for the rest of the packet to appear
                         */
-                       if (modem_status1 & ((1 << CC1200_MODEM_STATUS1_SYNC_FOUND) |
-                                            (1 << CC1200_MODEM_STATUS1_PQT_REACHED)))
+                       if (modem_status1 & (1 << CC1200_MODEM_STATUS1_SYNC_FOUND))
                        {
                                ao_radio_abort = 0;