Update main.c wait 80 seconds on shutdown to save log

sr-frs-rx-mode
Alan Johnston 2 years ago committed by GitHub
parent 1b4f8ea19d
commit 0f94db0965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -822,7 +822,7 @@ int main(int argc, char * argv[]) {
FILE * file6 = popen("/home/pi/CubeSatSim/log > shutdown_log.txt", "r"); FILE * file6 = popen("/home/pi/CubeSatSim/log > shutdown_log.txt", "r");
pclose(file6); pclose(file6);
sleep(40); sleep(80);
file6 = popen("sudo shutdown -h now > /dev/null 2>&1", "r"); file6 = popen("sudo shutdown -h now > /dev/null 2>&1", "r");
pclose(file6); pclose(file6);
sleep(10); sleep(10);

Loading…
Cancel
Save

Powered by TurnKey Linux.