From d07eda80b0ea3a8994b9928252ccf1f0efbf2add Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 8 Aug 2025 20:50:45 -0400 Subject: [PATCH] Update main.c try null --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 19b59ab5..cd0ce95f 100644 --- a/main.c +++ b/main.c @@ -712,7 +712,7 @@ int main(int argc, char * argv[]) { fclose(telem_file); if (failureMode == FAIL_PAYLOAD) { - sensor_payload[0] = 'X'; // This will cause the payload to not be processed. + sensor_payload[0] = '\0'; // This will cause the payload to not be processed. printf("Simulated Payload Failure.\n"); } @@ -1116,6 +1116,7 @@ void get_tlm(void) { // char footer_str[] = "-11>APCSS:010101/hi hi ' >> t.txt && touch /home/pi/CubeSatSim/ready"; // transmit is done by transmit.py char footer_str[] = " && echo 'AMSAT-11>APCSS:010101/hi hi ' >> t.txt && touch /home/pi/CubeSatSim/ready"; // transmit is done by transmit.py char footer_str2[] = " && touch /home/pi/CubeSatSim/ready"; + char zero[] = "0.0"; if (ax5043) { strcpy(str, header_str);