summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-10-04 23:10:59 -0700
committerKeith Packard <keithp@keithp.com>2018-10-04 23:10:59 -0700
commitaeb07f2b94b0121d4e5a6ce175ce4e013d6557cf (patch)
treee675ce31488e492f9cd36dcf64382801ce125329 /src
parent77c3878df78ae356c442999a99f1e1752e2cd06b (diff)
altos: Force telemetry rate to 38400 when ao_force_freq is set
ao_force_freq is used by TeleMini to set the radio to known values. As TeleMini v3.0 also has configurable telemetry rates, this value also needs to be set back to a known value. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/kernel/ao_config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/ao_config.c b/src/kernel/ao_config.c
index 25634ffc..86d4838f 100644
--- a/src/kernel/ao_config.c
+++ b/src/kernel/ao_config.c
@@ -243,6 +243,9 @@ _ao_config_get(void)
if (ao_force_freq) {
ao_config.frequency = 434550;
ao_config.radio_cal = ao_radio_cal;
+#if HAS_RADIO_RATE
+ ao_config.radio_rate = AO_CONFIG_DEFAULT_RADIO_RATE;
+#endif
ao_xmemcpy(&ao_config.callsign, CODE_TO_XDATA(AO_CONFIG_DEFAULT_CALLSIGN),
sizeof(AO_CONFIG_DEFAULT_CALLSIGN) - 1);
}