summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-11-23 18:56:40 -0800
committerKeith Packard <keithp@keithp.com>2014-11-23 18:56:40 -0800
commitb6462ca3a7e99fe390ec97f94c23d36fab8c294d (patch)
treea333f7e15cbef83ad97d81a57974c9cbcda4a238 /src
parent0e3eeaf59688dac92eb3a27d589923126cb34e00 (diff)
altos/cc1200: With PQT wide open, we can't use PQT_REACHED for start
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>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/ao_cc1200.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/drivers/ao_cc1200.c b/src/drivers/ao_cc1200.c
index 93bb2c6c..8546900e 100644
--- a/src/drivers/ao_cc1200.c
+++ b/src/drivers/ao_cc1200.c
@@ -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;