altos/drivers: Increase LCO receive timeout to 20ms
authorKeith Packard <keithp@keithp.com>
Thu, 2 Feb 2023 02:00:24 +0000 (18:00 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 2 Feb 2023 02:04:36 +0000 (18:04 -0800)
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 <keithp@keithp.com>
src/drivers/ao_lco_func.c

index 5aacd0e48c3f51dd52d81fb1e75e15cff0bd4693..f5e27e602180accfcb875c253bbdc108000d3a7b 100644 (file)
@@ -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);