Update main.c move is_safe

master-b3
Alan Johnston 1 month ago committed by GitHub
parent 8ddaa56f27
commit 50f993279f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1547,12 +1547,16 @@ void get_tlm(void) {
printf("\n\nTelemetry string is %s \n\n", str);
if (transmit && is_safe_input(str)) {
if (transmit) {
if (is_safe_input(str))
printf("String is safe")
else
printf("String is not safe")
FILE * file2 = popen(str, "r");
pclose(file2);
sleep(2);
digitalWrite(txLed, txLedOff);
sleep(2);
digitalWrite(txLed, txLedOff);
} else {
fprintf(stderr, "\nNo CubeSatSim Band Pass Filter detected. No transmissions after the CW ID.\n");

Loading…
Cancel
Save

Powered by TurnKey Linux.