Update main.c don't write file to shutdown log

beta-v1.3.1-cw
Alan Johnston 2 years ago committed by GitHub
parent 161d233d23
commit 4a82ae982d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save

Powered by TurnKey Linux.