Update main.c fixed delay detection

beta-aprs
Alan Johnston 1 year ago committed by GitHub
parent 8aeb6f5569
commit ccfd2617dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -47,11 +47,12 @@ int main(int argc, char * argv[]) {
if (command_file == NULL) { if (command_file == NULL) {
pi_zero_2_offset = 500; pi_zero_2_offset = 500;
printf("Command and control is OFF\n"); printf("Command and control is OFF\n");
} } else {
command_file = fopen("/home/pi/CubeSatSim/command_control_direwolf", "r"); command_file = fopen("/home/pi/CubeSatSim/command_control_direwolf", "r");
if (command_file == NULL) { if (command_file == NULL) {
pi_zero_2_offset = 500; pi_zero_2_offset = 500;
printf("Command and control Carrier (squelch) is ON\n"); printf("Command and control Carrier (squelch) is ON\n");
}
} }
sleep(10); sleep(10);
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.