From 4fdda4c1c3cd5f6e4c6bd86ad55652695e650cc8 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 13 Nov 2023 17:07:55 -0500 Subject: [PATCH] Update main.c move program_radio() --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 2f3ce8a4..2fad1886 100644 --- a/main.c +++ b/main.c @@ -46,9 +46,7 @@ int main(int argc, char * argv[]) { printf("\n\nCubeSatSim v1.3b starting...\n\n"); wiringPiSetup(); - - program_radio(); - + // FILE * rpitx_stop = popen("sudo systemctl stop rpitx", "r"); FILE * rpitx_stop = popen("sudo systemctl restart rpitx", "r"); pclose(rpitx_stop); @@ -159,6 +157,8 @@ int main(int argc, char * argv[]) { printf("==%s==%s==\n", tx, rx); + program_radio(); + reset_count = (reset_count + 1) % 0xffff; if ((fabs(lat_file) > 0) && (fabs(lat_file) < 90.0) && (fabs(long_file) > 0) && (fabs(long_file) < 180.0)) {