From 70c9fc74a68fdb92569eb73295cfa154cf3768f4 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 18 Nov 2012 09:50:54 -0800 Subject: [PATCH] altos: Make Tm recovery mode set RF cal and callsign too This lets us connect to Tm even if someone messes up the RF calibration or callsign info Signed-off-by: Keith Packard --- src/core/ao_config.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/ao_config.c b/src/core/ao_config.c index e8ff95b7..e85ddcb4 100644 --- a/src/core/ao_config.c +++ b/src/core/ao_config.c @@ -144,8 +144,12 @@ _ao_config_get(void) } #if HAS_RADIO #if HAS_FORCE_FREQ - if (ao_force_freq) + if (ao_force_freq) { ao_config.frequency = 434550; + ao_config.radio_cal = ao_radio_cal; + ao_xmemcpy(&ao_config.callsign, CODE_TO_XDATA(AO_CONFIG_DEFAULT_CALLSIGN), + sizeof(AO_CONFIG_DEFAULT_CALLSIGN) - 1); + } #endif ao_config_set_radio(); #endif -- 2.30.2