fulltext: fix bug triggering session log
This commit is contained in:
1 parent
b68a0ee082
commit
2722655658
2 files changed
+4
-3
No files matched your search
@@ -181,13 +181,14 @@ void CmdsHelp(const command_t Commands[]) {
|
||||
int i = 0;
|
||||
while (Commands[i].Name) {
|
||||
if (Commands[i].IsAvailable()) {
|
||||
uint8_t old_printAndLog = g_printAndLog;
|
||||
g_printAndLog = PRINTANDLOG_PRINT;
|
||||
if (Commands[i].Name[0] == '-' || Commands[i].Name[0] == ' ') {
|
||||
PrintAndLogEx(NORMAL, "%-16s %s", Commands[i].Name, Commands[i].Help);
|
||||
} else {
|
||||
PrintAndLogEx(NORMAL, _GREEN_("%-16s")" %s", Commands[i].Name, Commands[i].Help);
|
||||
}
|
||||
g_printAndLog = PRINTANDLOG_PRINT | PRINTANDLOG_LOG;
|
||||
g_printAndLog = old_printAndLog;
|
||||
}
|
||||
++i;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user