From: Keith Packard Date: Thu, 2 Feb 2023 02:00:24 +0000 (-0800) Subject: altos/drivers: Increase LCO receive timeout to 20ms X-Git-Tag: 1.9.14~1^2~2 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=015ebe291695d0588294a523b864aed73a5178c9 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 --- 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);