Update main.c delete image_file.bin when done

fc-jy-img
Alan Johnston 11 months ago committed by GitHub
parent 6a25bd055e
commit 572c05c0d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2340,7 +2340,9 @@ void get_tlm_fc() { // FunCube Mode telemetry generation
}
if (value == EOF) {
image_file = NULL;
printf("End of file reached!");
printf("End of file reached! Delete image_file.bin");
FILE * delete_image = popen("sudo rm /home/pi/CubeSatSim/image_file.bin", "r");
pclose(delete_image);
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.