mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-10 07:08:28 +02:00
neutrino remove useless allow_flash from CmdParser()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6981a252c8
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Origin message was:
------------------
- neutrino remove useless allow_flash from CmdParser()
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -179,7 +179,6 @@ CInfoIcons *InfoIcons;
|
||||
#include "driver/lcd4l.h"
|
||||
#endif
|
||||
|
||||
int allow_flash = 1;
|
||||
Zapit_config zapitCfg;
|
||||
char zapit_lat[21]="#";
|
||||
char zapit_long[21]="#";
|
||||
@@ -2558,11 +2557,7 @@ void CNeutrinoApp::CmdParser(int argc, char **argv)
|
||||
sections_debug = 1;
|
||||
|
||||
for(int x=1; x<argc; x++) {
|
||||
if ((!strcmp(argv[x], "-u")) || (!strcmp(argv[x], "--enable-update"))) {
|
||||
dprintf(DEBUG_NORMAL, "Software update enabled\n");
|
||||
allow_flash = 1;
|
||||
}
|
||||
else if (((!strcmp(argv[x], "-v")) || (!strcmp(argv[x], "--verbose"))) && (x+1 < argc)) {
|
||||
if (((!strcmp(argv[x], "-v")) || (!strcmp(argv[x], "--verbose"))) && (x+1 < argc)) {
|
||||
int dl = atoi(argv[x+ 1]);
|
||||
dprintf(DEBUG_NORMAL, "set debuglevel: %d\n", dl);
|
||||
setDebugLevel(dl);
|
||||
@@ -2600,8 +2595,7 @@ void CNeutrinoApp::CmdParser(int argc, char **argv)
|
||||
x++;
|
||||
}
|
||||
else {
|
||||
dprintf(DEBUG_NORMAL, "Usage: neutrino [-u | --enable-update] "
|
||||
"[-v | --verbose 0..3]\n");
|
||||
dprintf(DEBUG_NORMAL, "Usage: neutrino [-v | --verbose 0..3]\n");
|
||||
exit(CNeutrinoApp::EXIT_ERROR);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user