Update main.c don't close if open fails

beta-v1.3.2-battery-saver-3
Alan Johnston 2 years ago committed by GitHub
parent 889d532f27
commit 84d388bcfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -181,7 +181,7 @@ int main(int argc, char * argv[]) {
FILE *file = fopen("/home/pi/CubeSatSim/battery_saver", "r");
if (file == NULL) {
fprintf(stderr,"Battery saver mode is OFF!\n");
fclose(file);
// fclose(file);
battery_saver_mode = OFF;
}
else {

Loading…
Cancel
Save

Powered by TurnKey Linux.