From 015ebe291695d0588294a523b864aed73a5178c9 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 1 Feb 2023 18:00:24 -0800 Subject: [PATCH] altos/drivers: Increase LCO receive timeout to 20ms Changes in the cc1200 driver appear to have sped up the transition from TX to RX enough that we now need to wait a bit longer for TeleFire to return a packet. Increase the 38400 bps timeout to 20ms and the 9600 bps timeout to 30ms. Signed-off-by: Keith Packard --- src/drivers/ao_lco_func.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/ao_lco_func.c b/src/drivers/ao_lco_func.c index 5aacd0e4..f5e27e60 100644 --- a/src/drivers/ao_lco_func.c +++ b/src/drivers/ao_lco_func.c @@ -29,7 +29,7 @@ ao_lco_query(uint16_t box, struct ao_pad_query *query, uint16_t *tick_offset) { int8_t r; AO_TICK_TYPE sent_time; - AO_TICK_TYPE timeout = AO_MS_TO_TICKS(10); + AO_TICK_TYPE timeout = AO_MS_TO_TICKS(20); #if HAS_RADIO_RATE switch (ao_config.radio_rate) { @@ -37,7 +37,7 @@ ao_lco_query(uint16_t box, struct ao_pad_query *query, uint16_t *tick_offset) default: break; case AO_RADIO_RATE_9600: - timeout = AO_MS_TO_TICKS(20); + timeout = AO_MS_TO_TICKS(30); break; case AO_RADIO_RATE_2400: timeout = AO_MS_TO_TICKS(80); -- 2.30.2