added log write to shutdown_log.txt before low battery shutdown

pull/93/head
alanbjohnston 5 years ago committed by GitHub
parent 5220b604a0
commit 408134210e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -611,6 +611,7 @@ int main(int argc, char * argv[]) {
sleep(1); sleep(1);
digitalWrite(onLed, onLedOff); digitalWrite(onLed, onLedOff);
popen("/home/pi/CubeSatSim/log > shutdown_log.txt", "r");
popen("sudo shutdown -h now > /dev/null 2>&1", "r"); popen("sudo shutdown -h now > /dev/null 2>&1", "r");
sleep(10); sleep(10);
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.