Update main.c add print for safe mode and set to 0

beta-sim
Alan Johnston 2 years ago committed by GitHub
parent 51b0ca8482
commit 9bde7ffe58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -123,8 +123,12 @@ int main(int argc, char * argv[]) {
// FILE * rpitx_restart = popen("sudo systemctl restart rpitx", "r");
// pclose(rpitx_restart);
if (battery_saver_check() == ON)
if (battery_saver_check() == ON) {
SafeMode = 1;
fprintf(stderr, "Safe Mode is activated by config setting!\n");
}
else
SafeMode = 0;
mode = FSK;
frameCnt = 1;

Loading…
Cancel
Save

Powered by TurnKey Linux.