From 8576430d6d9bdc48be0c56daf3760f4222b5e21f Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 16 Nov 2023 15:36:46 -0500 Subject: [PATCH] Update main.c fixes to quotes --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 4cfca191..8f7a81dc 100644 --- a/main.c +++ b/main.c @@ -2255,12 +2255,12 @@ int battery_saver_check() { void battery_saver(int setting) { if (setting == ON) { - if ((mode == APRS) || (mode == SSTV) || (mode == CW)) { + if ((mode == AFSK) || (mode == SSTV) || (mode == CW)) { if (battery_saver_check() == 0) { FILE *command = popen("touch /home/pi/CubeSatSim/battery_saver", "r"); pclose(command); fprintf(stderr,"Turning Battery saver mode ON\n"); - *command = popen("if ! grep -q force_turbo=1 /boot/config.txt ; then sudo sh -c 'echo "force_turbo=1" >> /boot/config.txt'; fi", "r"); + *command = popen("if ! grep -q force_turbo=1 /boot/config.txt ; then sudo sh -c 'echo force_turbo=1 >> /boot/config.txt'; fi", "r"); pclose(command); *command = popen("sudo reboot now", "r"); pclose(command); @@ -2269,7 +2269,7 @@ if (setting == ON) { } } } else if (setting == OFF) { - if ((mode == APRS) || (mode == SSTV) || (mode == CW)) { + if ((mode == AFSK) || (mode == SSTV) || (mode == CW)) { if (battery_saver_check() == 1) { FILE *command = popen("rm /home/pi/CubeSatSim/battery_saver", "r"); pclose(command);