altos: Make Tm recovery mode set RF cal and callsign too
authorKeith Packard <keithp@keithp.com>
Sun, 18 Nov 2012 17:50:54 +0000 (09:50 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 18 Nov 2012 17:50:54 +0000 (09:50 -0800)
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>
src/core/ao_config.c

index e8ff95b7f612da6da6864cfa3f838f43269adc6f..e85ddcb4d74d9a53dbb0b2ed9630d4be0f667cfe 100644 (file)
@@ -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