diff options
author | Keith Packard <keithp@keithp.com> | 2012-11-18 09:50:54 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-11-18 09:50:54 -0800 |
commit | 70c9fc74a68fdb92569eb73295cfa154cf3768f4 (patch) | |
tree | 43fa8421a1a0ad02ac3ee0e03d4bb446ce21250e /src | |
parent | fa3beed645c7bff08d22a657daffe75059dc7b88 (diff) |
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 <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ao_config.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 |