Tx try again

pull/93/head
alanbjohnston 5 years ago committed by GitHub
parent 294f64e8be
commit 499259b8b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1016,23 +1016,25 @@ void get_tlm(void) {
strcat(str, footer_str); strcat(str, footer_str);
fprintf(stderr, "String to execute: %s\n", str); fprintf(stderr, "String to execute: %s\n", str);
digitalWrite(txLed, txLedOn);
#ifdef DEBUG_LOGGING
printf("Tx LED On 6\n");
#endif
if (transmit) { if (transmit) {
digitalWrite(txLed, txLedOn);
#ifdef DEBUG_LOGGING
printf("Tx LED On 6\n");
#endif
FILE * file2 = popen(str, "r"); FILE * file2 = popen(str, "r");
pclose(file2); pclose(file2);
digitalWrite(txLed, txLedOff);
#ifdef DEBUG_LOGGING
printf("Tx LED Off 6\n");
#endif
sleep(2); sleep(2);
} else { } else {
fprintf(stderr, "\nNo CubeSatSim Band Pass Filter detected. No transmissions after the CW ID.\n"); fprintf(stderr, "\nNo CubeSatSim Band Pass Filter detected. No transmissions after the CW ID.\n");
fprintf(stderr, " See http://cubesatsim.org/wiki for info about building a CubeSatSim\n\n"); fprintf(stderr, " See http://cubesatsim.org/wiki for info about building a CubeSatSim\n\n");
} }
digitalWrite(txLed, txLedOff);
#ifdef DEBUG_LOGGING
printf("Tx LED Off 6\n");
#endif
sleep(3); sleep(3);
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.