From e012a56ed55acac56fc48472bbd831d856ad718f Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 15 Jul 2022 10:22:42 -0400 Subject: [PATCH] in radio_config also config SR_FRS for FSK mode --- cubesatsim/cubesatsim.ino | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index b7f8a73b..c6823795 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -1740,7 +1740,7 @@ void config_radio() pinMode(TEMPERATURE_PIN, INPUT); pinMode(AUDIO_IN_PIN, INPUT); - if (mode == AFSK) { + if ((mode == AFSK) || (mode == FSK)) { digitalWrite(PD_PIN, HIGH); // Enable SR_FRS @@ -1756,13 +1756,16 @@ void config_radio() // mySerial.println("AT+DMOSETMIC=6,0\r"); } - } else if (mode == FSK) { - transmit_on(); +// } else if (mode == FSK) { // moved to below +// transmit_on(); } else if (mode == BPSK) { start_pwm(); start_isr(); transmit_on(); } + + if (mode == FSK) + transmit_on(); } void test_radio()