diff --git a/main.c b/main.c index 39bbdbfe..a34859e4 100644 --- a/main.c +++ b/main.c @@ -2731,9 +2731,8 @@ if (setting == ON) { FILE *command = popen("rm /home/pi/CubeSatSim/battery_saver", "r"); pclose(command); fprintf(stderr,"Turning Battery saver mode OFF\n"); - if ((mode == AFSK) || (mode == SSTV) || (mode == CW) || (mode == PACSAT)) { battery_saver_mode = OFF; - if ((mode == AFSK) || (mode == SSTV) || (mode == CW)) { + if ((mode == AFSK) || (mode == SSTV) || (mode == CW) || (mode == PACSAT)) { command = popen("echo 'reboot due to turning OFF Safe Mode!' | wall", "r"); pclose(command); command = popen("sudo reboot now", "r");