From 85774ce5b3592246d3f3796f12dac731c0075773 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 20 Aug 2022 15:59:34 -0400 Subject: [PATCH] fix destination --- cubesatsim/cubesatsim.ino | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index bf324081..df34ff23 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -479,8 +479,7 @@ void config_telem() { set_pin(AUDIO_OUT_PIN); - const char destination[] = "APCSS"; - + char destination[] = "APCSS"; set_callsign(callsign, destination); set_lat_lon(); @@ -3838,8 +3837,10 @@ void prompt_for_input() { if (strlen(serial_string) > 0) { strcpy(callsign, serial_string); - if (mode == AFSK) - set_callsign(callsign); + if (mode == AFSK) { + char destination[] = "APCSS"; + set_callsign(callsign, destination); + } Serial.println("Callsign updated!"); } else Serial.println("Callsign not updated!");