40 second delay to write log before low voltage shutdown

pull/107/head
alanbjohnston 5 years ago committed by GitHub
parent 9055e1d996
commit 7988a68323
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -886,7 +886,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(20); sleep(40);
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.