diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 429f94077..b7d1d6287 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -1622,7 +1622,7 @@ printf("CNeutrinoApp::SetChannelMode %d\n", newmode); * CNeutrinoApp - run, the main runloop * **************************************************************************************/ extern int cnxt_debug; -extern int sections_debug; +extern bool sections_debug; extern int zapit_debug; void CNeutrinoApp::CmdParser(int argc, char **argv) @@ -1632,6 +1632,7 @@ void CNeutrinoApp::CmdParser(int argc, char **argv) global_argv[i] = argv[i]; global_argv[argc] = NULL; + sections_debug = false; softupdate = false; fromflash = false; @@ -1657,7 +1658,7 @@ void CNeutrinoApp::CmdParser(int argc, char **argv) cnxt_debug = 1; } else if ((!strcmp(argv[x], "-sd"))) { - sections_debug = 1; + sections_debug = true; } else if ((!strcmp(argv[x], "-zd"))) { zapit_debug = 1; diff --git a/src/sectionsd/debug.cpp b/src/sectionsd/debug.cpp index b6f5a4c94..4269a3100 100644 --- a/src/sectionsd/debug.cpp +++ b/src/sectionsd/debug.cpp @@ -24,7 +24,7 @@ #include #include -bool sections_debug = false; +bool sections_debug; void printdate_ms(FILE *f) { timeval now;