From: Keith Packard Date: Sun, 18 Nov 2012 17:50:54 +0000 (-0800) Subject: altos: Make Tm recovery mode set RF cal and callsign too X-Git-Tag: micropeak-build-2012-12-09~10 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=70c9fc74a68fdb92569eb73295cfa154cf3768f4 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 --- 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