Update main.c if command and control off, don't add extra delay

beta-aprs
Alan Johnston 1 year ago committed by GitHub
parent 4fb596fd1a
commit 5836db7ecb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -43,7 +43,10 @@ int main(int argc, char * argv[]) {
sleep(5); // try sleep at start to help boot
}
else {
printf("Pi Zero detected\n");
printf("Pi Zero detected\n");
FILE * command_file = fopen("/home/pi/CubeSatSim/command_control", "r");
if (command_file == NULL)
pi_zero_offset = 500;
sleep(10);
}

Loading…
Cancel
Save

Powered by TurnKey Linux.